DZone.com: Practical Testing Patterns - Redux
A while back we posted about a series of articles Giorgio Sironi was doing about some of the more practical applications of testing patterns in PHP unit testing. He' been building on the series ever since and has lots of great patterns you can use to more correctly structure your testing practices.
The current list includes:
- Test Strategy: Scripted Test
- Design for Testability: Dependency Injection
- Fixture Setup: Delegated Setup
- Fixture Teardown: Automated Teardown
- Test Double: Mock Object
There's lots more where these came from, all divided into sections like "Fixture Setup", "Test Double" and "Database Isolation" patterns. You can find the full list so far here.