Writing unit tests in PHP with PHPUnit

ThijsFeryn

PHPUnit is the de facto standard for unit testing in PHP and has been for quite some time. In this talk I'll teach you how to make your PHP projects more reliable by performing unit tests.

We'll write unit tests, we'll organize our tests, we'll mock external dependencies (both with the built-in mocking framework and with Prophecy) and try to achieve a high code coverage and branch coverage. The end goal is to make this part of our continuous intregration process that will protect us from deploying bogus code. 

Session Track

PHP

Experience Level

Beginner

Drupal Version