For many developers, testing their code is one of those tasks that they prefer to avoid as much as possible. But one of the easily applied aspects of Extreme Programming is the practice of test-driven development in which the tests are the first part of the development. We will look at the benefits of writing tests before
writing the code which it tests and how to use the PHPUnit testing framework to make the practice of writing tests for your code easy and even fun.
Donald Hosek has been programming for over 25 years and has worked with PHP since the PHP3 days. He is currently employed by cars.com and has done development for a wide variety of companies including Fox Filmed Entertainment, Beckman-Coulter, and the Chicago Stock Exchange among others.