A Tale of Two Test Suites

WordPress powers over 20% of the Internet and comes with a fully-fleshed out unit testing framework covering the core library. For testing plugins and themes (extensions to WordPress), I developed WP_Mock, a comprehensive mocking framework for WordPress. WP_Mock allows developers to test their code in complete isolation from WordPress itself.

I’ll walk attendees through both test frameworks, covering the pros/cons of each and examples of their use. Attendees will gain a further understanding of PHPUnit, unit testing in general, process isolation, and code modularization.

Speaker