ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

PHPUnit Completions

by tkowalewski ST2/ST3

Autocomplete functionallity for PHPUnit assertions.

Details

Installs

  • Total 38K
  • Win 21K
  • OS X 7K
  • Linux 10K
Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6
Windows 2 7 9 9 11 8 8 8 5 6 10 11 14 14 10 7 7 11 11 11 14 13 12 4 12 11 8 8 7 6 5 12 11 12 20 9 4 11 8 9 7 9 11 2 7 10
OS X 0 1 1 0 1 1 1 0 0 1 1 2 2 3 1 0 1 5 3 2 4 1 1 0 3 1 1 2 0 2 1 2 2 3 2 0 3 0 1 3 1 1 1 0 1 2
Linux 0 1 2 3 4 2 4 3 3 7 3 3 3 5 2 3 2 0 3 5 2 3 4 1 0 6 3 7 5 1 0 1 9 5 9 5 3 5 4 3 2 5 3 2 4 2

Readme

Source
raw.​githubusercontent.​com

PHPUNIT COMPLETIONS

Provides decent PHPUnit completions for Sublime Text.

Overview

Features

  • PHPUnit ~5.4
  • DbUnit ~2.0
  • PSR compliant
  • Scoped to minimise auto-complete noise
  • Test case type hints e.g. begin typing at class Name extends | and any other context where a type hint is valid.
  • Assertions e.g. begin typing assert| or $this->assert|
  • Test case helpers e.g. begin typing getMockBuilder| or $this->getMockBuilder|
  • Annotations e.g. begin typing (any valid doc block scope) /* @covers| */ or without the @ symbol /* covers| */

Key Bindings

OS X Windows Linux Description
Ctrl+Space Ctrl+Space Alt+/ Activate completions

To enable tab-completions set "tab_completion": true in Preferences > Settings - User.

Installation

Package Control installation

The preferred method of installation is via Package Control.

  1. Install Package Control.
  2. From inside Sublime Text, open Package Control's Command Pallet: Ctrl+Shift+P (Windows, Linux) or Cmd+Shift+P on Mac.
  3. Type install package and hit Return. A list of available packages will be displayed.
  4. Type phpunit-sublime-completions and hit Return. The package will be downloaded to the appropriate directory.
  5. Restart Sublime Text to complete ins,rtallation. The features listed above should now be available.

Manual installation

  1. Close Sublime Text.
  2. Download or clone this repository to a directory named php-completions in the Sublime Text Packages directory for your platform:
    • Sublime Text 3
      • Linux: git clone https://github.com/tkowalewski/phpunit-sublime-completions.git ~/.config/sublime-text-3/Packages/phpunit-sublime-completions
      • OS X: git clone https://github.com/tkowalewski/phpunit-sublime-completions.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/phpunit-sublime-completions
      • Windows: git clone https://github.com/tkowalewski/phpunit-sublime-completions.git %APPDATA%\Sublime/ Text/ 3/Packages/phpunit-sublime-completions
    • Sublime Text 2
      • Linux: git clone https://github.com/tkowalewski/phpunit-sublime-completions.git ~/.config/sublime-text-2/Packages/phpunit-sublime-completions
      • OS X: git clone https://github.com/tkowalewski/phpunit-sublime-completions.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/phpunit-sublime-completions
      • Windows: git clone https://github.com/tkowalewski/phpunit-sublime-completions.git %APPDATA%\Sublime/ Text/ 2/Packages/phpunit-sublime-completions
  3. Restart Sublime Text to complete installation. The features listed above should now be available. 4. ## Contributing

Your issue reports and pull requests are always welcome.

Changelog

See CHANGELOG.md.

License

Released under the [???][LICENSE].