Jani Hartikainen continues his series on unit testing PHP applications with the second part - a look at writing and running some tests (here's the link to part one).
Continuing from the unit test introduction, we will now continue and take a look at how to write tests and ways to run the tests.
He uses one of the standards in the PHP community for unit testing, PHPUnit, and shows how to write a sample test with an assertEquals to check the value of a variable. He also includes the steps to set up the PHPUnit configuration to run the tests and create a test suite.