Loading PHPUnit from PHAR archive in PhpStorm 6

Since version 3.7 it is possible to load PHPUnit with all the required (as well as some optional) dependencies from a single PHAR file (see the official documentation for details). If you are stuck with PEAR dependency versions, it might be helpful to you.

We are happy to announce that loading PHPUnit from PHAR is supported in PhpStorm 6.0. To switch the PHPUnit loading method, go to Project Settings | PHP | PHPUnit and set the path to phpunit.phar.

In case you don’t have the file already located somewhere on your local system, you may use the helper action Download phpunit.phar from http://pear.phpunit.de and download the latest stable version of PHPUnit from the official PHPUnit site.

With these settings, you can now run PHPUnit tests the same way you did before, this time with a project-specific version of the test framework.

Please download the latest build, provide feedback for bugs and feature requests here, and leave questions in the comments below or in our forums!

Develop with pleasure!
– JetBrains PhpStorm Team

This entry was posted in Cool Feature and tagged , , , . Bookmark the permalink.

3 Responses to Loading PHPUnit from PHAR archive in PhpStorm 6

  1. Pascal Chevrel says:

    Could we get integration with the Atoum framework as well? https://github.com/atoum/

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">