Приглашаем посетить
Чарская (charskaya.lit-info.ru)

Section 15-3.  PHPUnit2_Framework_Test

Previous
Table of Contents
Next

15-3. 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

void fail( )

Reports an error.

void fail(String $message)

Reports an error identified by $message.


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.


Previous
Table of Contents
Next