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

PHPUnit Completions

by tkowalewski ST2/ST3

Autocomplete functionallity for PHPUnit assertions.

Details

  • 0.12.0
  • github.​com
  • github.​com
  • 5 months ago
  • 13 minutes ago
  • 5 years ago

Installs

  • Total 32K
  • Win 17K
  • OS X 7K
  • Linux 8K
Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 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
Windows 10 12 8 16 9 10 11 11 11 20 11 11 10 22 6 14 14 15 9 11 10 15 13 12 10 13 10 6 15 11 10 15 9 12 12 10 8 10 12 9 17 9 16 17 12 17
OS X 3 4 2 4 3 2 0 1 1 6 3 1 3 1 3 3 8 2 4 1 1 2 2 1 3 0 2 5 5 3 7 2 1 1 2 0 2 4 7 4 2 1 4 1 3 7
Linux 2 9 5 4 2 2 5 2 6 0 2 8 6 3 5 5 3 6 5 4 9 6 8 3 4 2 4 5 5 5 2 5 2 2 4 6 7 6 4 1 1 3 5 5 9 9

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