Here’s some essential unit-testing posts I’ve written recently. While some of them have examples in PHP, they should still be useful in other languages as well.
Unit testing PHP series
- Unit testing introduction
- Writing and running tests
- Writing tests for exsisting code
- Mock Objects and testing code which uses the database
- Test-driven development