TDD example TDD example from the book "Test-driven development by example", by Kent Beck, rewritten in PHP. Note that some details may change according to my own opinions.