This talk provides an introduction to PHPUnit suitable for someone with no PHPUnit experience, and little to no unit testing experience. It uses a test-driven development example to demonstrate writing test cases, simple assertions and constraints, mocking, data providers, and testing exceptions and PHP errors. Also covered is installation of PHPUnit via Composer, built-in code coverage capability, and a brief discussion of command line options and configuration. At the conclusion of this presentation, the audience is capable of starting a Composer-managed project from scratch, and implementing meaningful, test-driven development.

Comments

Comments are closed.