PHP in Action Rotating Header Image

Posts from ‘January, 2008’

Testing Smarty templates

I follow the principle that you should test everything that could possibly fail. And I would like to have unit tests for everything; tests that exercise each small behavior in isolation. The components that are easiest to unit test are typically class and methods in plain object-oriented code. Not everything falls into that category, though. [...]