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 /libraries/pear/simpletest/simple_test.php (line 73)
RunnableTest | --SimpleTestCase
Class | Description |
---|---|
![]() |
Test case for testing of command line scripts and utilities. Usually scripts taht are external to the PHP code, but support it in some way. |
![]() |
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 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. |
Sets up the test with no display.
Runs an expectation directly, for extending the tests with new expectation classes.
Will be true on false and vice versa. False is the PHP definition of false, so that null, empty strings, zero and an empty array all count as false.
Called from within the test methods to register passes and failures.
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 runner.
Sends a fail event with a message.
Uses a stack trace to find the line of an assertion.
Invokes a test method and dispatches any untrapped errors. Called back from the visiting runner.
Sends a pass event with a message.
Uses reflection to run every method within itself starting with the string "test".
Dispatches a text message straight to the test suite. Useful for status bar displays.
Sets up unit test wide variables at the start of each test method. To be overridden in actual user test cases.
Sends a user defined event to the test runner.
This is for small scale extension where both the test case and either the runner or display are subclassed.
Cancels any outstanding errors.
Clears the data set in the setUp() method call.
To be overridden by the user in actual user test cases.
Can modify the incoming reporter so as to run the tests differently. This version simply passes it straight through.
Tests to see if the method is the constructor and so should be ignored.
Tests to see if the method is a test that should be run. Currently any method that starts with 'test' is a candidate.
Inherited From RunnableTest
RunnableTest::RunnableTest()
RunnableTest::getLabel()
RunnableTest::getSize()
RunnableTest::run()
Documentation generated on Fri, 10 Dec 2004 18:26:25 +0000 by phpDocumentor 1.3.0RC3