Testilence is an open-source unit testing library for PHP 5. It is published under the MIT license which means you are free and welcome to use it in any way. Like other JUnit inspired unit testing libraries, Testilence roughly follows the canon . It is however written with emphasis on what’s useful, not what’s usual, and combines original ideas with the best features found in different unit-testing toolkits into a coherent set.
Testilence differs from the above-mentioned canon in that you only get to have one assertion per test method (this is a Good Thing):
1. Multi-assertion test methods reduce test coverage, since the first failed assertion will abort the test method, skipping latter assertions in that method.
2. Single-assertion test methods provide the author with a strong incentive to think about the PUT, because each test method should name a behavior. Thinking of meaningful names for all the tests is sometimes painful, but the reward is a better understanding of the code.
3. Single-assertion test methods provide clearer picture to the reader.
View TesterTools dedicated page for this tool.
Comments --
Add