PHPUnit Completions
Autocomplete functionallity for PHPUnit assertions.
Details
Installs
- Total 49K
- Win 29K
- Mac 8K
- Linux 11K
May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 3 | 2 | 0 | 2 | 1 | 1 | 2 | 0 | 1 | 4 | 2 | 1 | 0 | 1 | 2 | 2 | 1 | 1 | 2 | 2 | 1 | 1 | 4 | 0 | 0 | 1 | 2 | 1 | 0 | 5 | 2 | 0 | 1 | 2 | 3 | 3 | 1 | 0 | 7 | 2 | 1 | 1 | 0 | 2 | 1 |
Mac | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 |
Readme
- Source
- raw.githubusercontent.com
PHPUNIT COMPLETIONS
Provides decent PHPUnit completions for Sublime Text.
Overview
Features
- 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.
- Install Package Control.
- From inside Sublime Text, open Package Control's Command Pallet: Ctrl+Shift+P (Windows, Linux) or Cmd+Shift+P on Mac.
- Type
install package
and hit Return. A list of available packages will be displayed. - Type
phpunit-sublime-completions
and hit Return. The package will be downloaded to the appropriate directory. - Restart Sublime Text to complete ins,rtallation. The features listed above should now be available.
Manual installation
- Close Sublime Text.
- 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
- Linux:
- 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
- Linux:
- Sublime Text 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].