Unit Testing and the Law of Demeter
I was writing some code today and not using Test-Driven development. The reason was that I did not have a good understanding of what I was writing, so I decided to write some of the guts before...
View ArticleMocking Zend Framework’s Row and Rowset objects
If you separate your business logic from your data access logic, the last thing you want to do is make your business logic unit tests reliant on the database. This is normally not a big deal: retrieve...
View ArticleHow PHPUnit saved HauteLook a lot of duckles
Yesterday I tweed that a phpunit test prevented a very expensive error at HauteLook. I had shared the details internally, but after receiving some positive twitter feedback I decided to make the story...
View Article
More Pages to Explore .....