PHPUnit: A Beginner's Guide


Brian Johnson
Company: PayLease

When: Thu Sep 20 :: 04:00 PM - 04:50 PM
Location: La Jolla
Type: regular
Level: entry
Category: testing

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.