PHPUnit is a powerful tool for writing and running tests for your PHP-based software. It is not uncommon, though, that extending PHPUnit's core functionality makes sense to adapt the tool to the specific needs of your software.

This session, presented by the creator of PHPUnit, teaches best practices for writing custom PHPUnit extensions and distributing them using Composer as well as PHP Archives (PHAR). You will learn how to implement custom assertions, logging capabilities, and solutions for fixture management, for instance.

Comments

Comments are closed.

Claudio at 02:02 on 22 Aug 2017

Nice insights for those, who haven't used PHPUnit to its fullest. Some of the named extending strategies are for edge cases.