I'm looking for a tutorial which explains **why** and **how** to write useful unit tests. Specifically I'm interested in PHPUnit, however any more general might be a good one to explain that. Please note that *I'm not looking for technical information on how to use PHPunit* - rather the tutorial on the way of thinking!