SimpleTestCaseBasic 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 38)
| Class | Description |
|---|---|
ShellTestCase
|
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. |
PHPUnit_TestCase
|
Adapter for PEAR PHPUnit test case to allow legacy PEAR test cases to be used with SimpleTest. |
UnitTestCase
|
Standard unit test class for day to day testing of PHP code XP style. Adds some useful standard assertions. |
WebTestCase
|
Test case for testing of web pages. Allows fetching of pages, parsing of HTML and submitting forms. |
mixed
$reporter
(line 40)
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.
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.
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.
For user defined expansion of the available messages.
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.
Documentation generated on Sun, 31 Oct 2010 16:32:45 -0500 by phpDocumentor 1.4.3