TDD in PHP:  A Brief Example
About Me Jeremy Kendall PHP Developer since 2001 Organizer Memphis PHP Contributor to FRAPI project (getfrapi.com) [email_address] @JeremyKendall http://jeremykendall.net
TDD in PHP: A Brief Example Test Driven Development, you say?
Frankly, my dear . . .
Why You Should Give A Damn Test Driven Development is perhaps one of the best and fastest ways to improve your understanding and command of object-oriented principles and best practices.
What is TDD? From Wikipedia:
” Test Driven Development (TDD)  is a software development process that relies on the repetition of a very short development cycle  . . .”
TDD Development Process Write a test
Run all tests, watch new test fail
Write just enough code to make the test pass
Run all tests, watch new test pass
Lather, rinse, repeat . . .
Refactor
TDD: The Benefits High cohesion, loose coupling
Confidence
Faster time to resolution

Tdd in php a brief example