PHPUnit | PHPUnit2 |
PHPUnit | |
PEAR Manual | |
1) Implement a subclass of PHPUnit_TestCase.
2) Define instance variables that store the state of the fixture.
3) Initialize the fixture state by overriding setUp().
4) Clean-up after a test by overriding tearDown().
|
For each test implement a method which interacts with the fixture. Verify the expected results with assertions specified by calling assert with a boolean.
|
PHPUnit | PHPUnit2 |
PHPUnit | |
PEAR Manual | |