PhpUnit installation via Composer in PhpStorm
Since version 3.7, PHPUnit allows us to install the test runner and optional dependencies using Composer. With PhpStorm 6, this workflow is now supported from the IDE. Using both the bundled Composer support and PhpStorm's unit testing support, we can install PHPUnit via Composer without any hassle. Let's find out how.
MORE
|
Init Composer...* context menu to enable Composer support for our project. If you don't have _composer.phar anywhere on your system, the Click here to download from getcomposer.org helper will download the latest composer.phar from the official website.
|
Add dependency..._* context menu to download PHPUnit into our project. That's right: PhpStorm 6 comes with a nice UI for searching packages from the Packagist website.
|
PHPUnit_* pane. We can now select the Use custom loader option and specify the path to Composer's generated autoload.php. Optionally we can specify a default PHPUnit configuration file or a PHPUnit bootstrap file to be used when running tests.
|
http://youtrack.jetbrains.com/dashboard#newissue=yes]here, and leave questions in the comments below or in our[ |
http://devnet.jetbrains.com/community/wi?view=discussions]forums!
|
---|