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

PHPUnit Completions

by tkowalewski ST2/ST3

Autocomplete functionallity for PHPUnit assertions.

Details

Installs

  • Total 41K
  • Win 23K
  • OS X 8K
  • Linux 10K
Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11
Windows 1 9 9 6 11 4 9 7 10 9 9 5 7 9 9 5 10 11 4 3 5 9 9 10 13 3 4 11 5 15 6 5 11 7 5 8 5 12 5 5 9 7 7 7 15 14
OS X 0 2 0 0 0 0 1 0 2 1 1 0 0 2 3 1 1 2 0 1 0 0 0 0 0 0 1 1 0 1 4 4 0 1 1 1 0 3 0 1 0 1 1 0 0 1
Linux 1 3 1 3 4 2 4 2 3 3 2 0 1 1 1 3 2 2 2 5 5 4 2 2 4 2 2 1 3 1 3 3 3 0 0 8 2 1 3 2 5 4 0 4 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].