Basic test case. This is the smallest unit of a test suite. It searches for all methods that start with the the string "test" and runs them. Working test cases extend this class.
Located in /test_case.php (line 42)
Class | Description |
---|---|
![]() |
Adapter for sourceforge PHPUnit test case to allow legacy test cases to be used with SimpleTest. |
![]() |
Adapter for PEAR PHPUnit test case to allow legacy PEAR test cases to be used with SimpleTest. |
![]() |
Test case for testing of command line scripts and utilities. Usually scripts that are external to the PHP code, but support it in some way. |
![]() |
Test case for testing of web pages. Allows fetching of pages, parsing of HTML and submitting forms. |
![]() |
Standard unit test class for day to day testing of PHP code XP style. Adds some useful standard assertions. |
Accessor for the number of subtests including myelf.
Sets up the test with no display.
Announces the end of the test. Includes private clean up.
Runs an expectation directly, for extending the tests with new expectation classes.
Announces the start of the test.
Sends a formatted dump of a variable to the test suite for those emergency debugging situations.
Formats a PHP error and dispatches it to the reporter.
Formats an exception and dispatches it to the reporter.
Sends a fail event with a message.
Uses a stack trace to find the line of an assertion.
Gets a list of test names. Normally that will be all internal methods that start with the name "test". This method should be overridden if you want a different rule.
Uses reflection to run every method within itself starting with the string "test" unless a method is specified.
Sets up unit test wide variables at the start of each test method. To be overridden in actual user test cases.
This is a placeholder for skipping tests. In this method you place skipIf() and skipUnless() calls to set the skipping state.
Will issue a message to the reporter and tell the test case to skip if the incoming flag is true.
Will issue a message to the reporter and tell the test case to skip if the incoming flag is false.
Clears the data set in the setUp() method call.
To be overridden by the user in actual user test cases.
Sets up an observer for the test end.
Tests to see if the method is a test that should be run. Currently any method that starts with 'test' is a candidate unless it is the constructor.
Documentation generated on Sun, 04 May 2008 09:22:18 -0500 by phpDocumentor 1.3.0