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

PHPUnit Completions

by tkowalewski ST2/ST3

Autocomplete functionallity for PHPUnit assertions.

Details

Installs

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

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].