PHPUnit is the standard, but it is also sometimes overwhelming, so if you find it too complicated, check out phpt to get started. It is very, very easy to write tests. No problem for any programmer.
And to answer your TDD question - I'm not sure if TDD is used in the PHP space. I see that the rapid development of applications and TDD are somewhat contradictory (strictly IMHO). TDD requires that you have a complete picture of what you have created, and you write your tests in front, and then implement the code to pass the test.
So, for example, what we do is write a lot of tests when we are done. This is not always the best approach, because sometimes you end up with dummy tests that pass, but are not very useful, but at least this is something you can expand on. Inside we continue the tests and basically write a test for each error found. This is how it becomes more durable.
Till Sep 05 '08 at 17:24 2008-09-05 17:24
source share