Author Archives: Maarten Balliauw

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

Using GitHub without leaving PhpStorm

In a previous post we saw how PhpStorm handles Version Control Systems (VCS). A very popular VCS is Git, driven by the collaboration that’s possible using GitHub. In this post, we’ll explore several integrations with GitHub that are available from … Continue reading

Posted in Cool Feature, PhpStorm, Tutorial | Tagged , , , | 22 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 Type Inference and Mocking Frameworks

Recently, we received a question on Twitter asking about how PhpStorm handles type inference when working with mocking frameworks. Imagine having the following two classes: When writing a unit test for ClassA, it’s very easy to mock ClassB using PHPUnit’s … Continue reading

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