This plugin adds PHPUnit support to Sublime Text 2 & 3.
Use Package Control (Preferences -> Package Control -> Install Package -> PHPUnit) to install this plugin.
This plugin adds support for running PHPUnit tests from inside Sublime Text.
Right-click in the editor to:
Right-click in the side-bar to:
You can also open up the Command Palette (CTRL + SHIFT + P on Linux), and type 'PHPUnit' to see what you can do with PHPUnit in the currently open file.
To make this work, you need to create a phpunit.xml.dist or phpunit.xml file for your code (projects using Phix get this for free). The Sublime-PHPUnit plugin searches the folders upwards from whatever you are trying to test, using the first phpunit.xml or phpunit.xml.dist that it finds. Make sure that your phpunit.xml file is either at the top of your tests folder (or even further up), and this plugin will work for you.
PHPUnit support is based on the Ruby Tests plugin
We add the following snippets to speed up writing PHP test code.
To use any of the snippets, simply type the name of the snippet, then press the
Requests for features, and pull requests with patches, are most welcome :)
Please make sure that your pull requests are against the 'develop' branch and not 'master'.