One of the goals of PHPUnit is that tests should be composable: we want to be able to run any number or combination of tests together, for instance all tests for the whole
Many beginner and intermediate unit testing examples in any programming language suggest that it is perfectly easy to test your application's logic with simple tests. For
Example 2.1 shows how we can write tests using PHPUnit that exercise PHP's array operations. The example introduces the basic conventions and steps for writing tests with
Gerard Meszaros introduces the concept of Test Doubles in [Meszaros2007] like this:
PHPUnit can perform the additional checks documented below while it executes the tests. Useless Tests
Page 2 of 2