Метод |
Описание |
|
__construct ( string $label = false ) |
Sets up the test with no display. |
|
after ( string $method ) |
Announces the end of the test. Includes private clean up. |
|
assert ( SimpleExpectation $expectation, mixed $compare, string $message = '%s' ) : boolean |
Runs an expectation directly, for extending the tests with new expectation classes. |
|
before ( string $method ) |
Announces the start of the test. |
|
createInvoker ( ) : SimpleInvoker |
Used to invoke the single tests. |
|
dump ( mixed $variable, string $message = false ) : mixed |
Sends a formatted dump of a variable to the test suite for those emergency debugging situations. |
|
error ( integer $severity, string $message, string $file, integer $line ) |
Formats a PHP error and dispatches it to the reporter. |
|
exception ( Exception $exception ) |
Formats an exception and dispatches it to the reporter. |
|
fail ( string $message = 'Fail' ) |
Sends a fail event with a message. |
|
getAssertionLine ( ) : string |
Uses a stack trace to find the line of an assertion. |
|
getLabel ( ) : string |
Accessor for the test name for subclasses. |
|
getSize ( ) : integer |
Accessor for the number of subtests including myelf. |
|
getTests ( ) : array |
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. |
|
pass ( $message = 'Pass' ) |
|
|
run ( SimpleReporter $reporter ) : boolean |
Uses reflection to run every method within itself starting
with the string "test" unless a method is specified. |
|
setUp ( ) |
Sets up unit test wide variables at the start of each test method. |
|
shouldSkip ( ) |
Accessor for the private variable $_shoud_skip |
|
signal ( string $type, mixed $payload ) |
For user defined expansion of the available messages. |
|
skip ( ) |
This is a placeholder for skipping tests. |
|
skipIf ( string $should_skip, string $message = '%s' ) |
Will issue a message to the reporter and tell the test case to skip if the incoming flag is true. |
|
skipUnless ( string $shouldnt_skip, string $message = false ) |
Will issue a message to the reporter and tell the test case to skip if the incoming flag is false. |
|
tearDown ( ) |
Clears the data set in the setUp() method call. |
|
tell ( object $observer ) |
Sets up an observer for the test end. |
|