PHPUnit2_Framework_Test
PHPUnit2_Framework_Test
is the generic interface used by all objects that can act as tests. Implementors may represent one or more tests. The two methods are shown in Table 8.
Table 8. Implementor methods
Method |
Description |
---|---|
|
Reports an error. |
|
Reports an error identified by |
PHPUnit2_Framework_TestCase
and PHPUnit2_Framework_TestSuite
are the two most prominent implementors of PHPUnit2_Framework_Test
. You can implement PHPUnit2_Framework_Test
yourself. The interface is kept small intentionally so it will be easy to implement.
Get PHPUnit Pocket Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.