Tag Archives: PHPUnit

Introducing PhpStorm Video Tutorials

A lot of PhpStorm users have been asking us to create a series of video tutorials. Today, we’re happy to announce the availability of about two hours of video tutorials around PhpStorm which Maarten has been working on for the … Continue reading

Posted in Cool Feature, Screencast | Tagged , , , , , , , | 1 Comment

Working with Phar packages in PhpStorm

PHP comes with the Phar extension bundled, which allows us to put entire libraries or applications into a single “phar” file. This makes it easier to distribute our code: it’s just one file! PhpStorm can work with Phar packages in … Continue reading

Posted in Cool Feature | Tagged , , , | 7 Comments

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 … Continue reading

Posted in Cool Feature | Tagged , , , | 3 Comments

Creating PHPUnit Tests in PhpStorm

Starting with PhpStorm 6.0, PHPUnit Skeleton Generator is no longer available in the IDE. PHPUnit tests creation functionality has been completely re-worked so that PhpStorm generates tests itself and you can benefit from its flexibility and code insight. The IDE … Continue reading

Posted in Cool Feature | Tagged , | 4 Comments

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 … Continue reading

Posted in Cool Feature, PhpStorm | Tagged , , , , | 7 Comments

Running CakePHP2 Unit Tests in PhpStorm

CakePHP2 comes with unit testing support powered by PHPUnit. In addition to the features offered by PHPUnit, CakePHP offers some additional features to make testing easier. Unit tests in CakePHP rely on a custom test runner which can be run … Continue reading

Posted in Cool Feature, PhpStorm | Tagged , , , , | 7 Comments

PhpStorm 6 EAP build 126.36

New build is ready – this time with some quite visible changes! Check out new Composer project type at File|New Project|Projec Type->Composer PHPUnit tests generation via File|New|PHPUnit… and Navigate|Test actions Controllable Arrangement of class members in PHP at Settings|Code Style|PHP|Arrangement Hierarchical color scheme management via Language … Continue reading

Posted in Early Access Program, PhpStorm | Tagged , | 36 Comments

Continuous Integration for PHP using TeamCity

If you have multiple team members, you should be doing Continuous Integration (CI). By building the desired output artifacts on a frequent basis and analyzing their quality using unit tests and code coverage, you will find that there are fewer … Continue reading

Posted in Cool Feature, Tutorial | Tagged , , , , , , | 2 Comments

PhpStorm & WebStorm 4.0 EAP 116.101

This week’s EAP brings you important bug fixes and improvements in all areas, with following changes most notable: PHP 5.4 is now fully supported – this build will recognize trait use section’s method renames and conflict resolution rules and infer $this type in … Continue reading

Posted in Early Access Program, PhpStorm, WebStorm | Tagged , , , , , , , | 4 Comments

PHPUnit Support

After you set up PHPUnit, Web IDE greatly helps you to run your tests. Namely, to quickly create test run configuration: Right-click the desired target: a directory or a PHP file in the Project view, or a test class/method name … Continue reading

Posted in Cool Feature, PhpStorm | Tagged , , , | 7 Comments