[ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
Base include file for SimpleTest
Version: | $Id: runner.php 1397 2006-09-07 07:55:53Z wei $ |
Poids: | 300 lignes (10 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
SimpleInvoker:: (3 méthodes):
SimpleInvoker()
getTestCase()
invoke()
SimpleInvokerDecorator:: (3 méthodes):
SimpleInvokerDecorator()
getTestCase()
invoke()
SimpleErrorTrappingInvoker:: (2 méthodes):
SimpleErrorTrappingInvoker()
invoke()
SimpleRunner:: (14 méthodes):
SimpleRunner()
getTestCase()
run()
_isConstructor()
_isTest()
paintMethodStart()
paintMethodEnd()
paintPass()
paintFail()
paintError()
paintException()
paintMessage()
paintFormattedMessage()
paintSignal()
Classe: SimpleInvoker - X-Ref
This is called by the class runner to run aSimpleInvoker($test_case) X-Ref |
Stashes the test case for later. param: SimpleTestCase $test_case Test case to run. |
getTestCase() X-Ref |
Accessor for test case being run. return: SimpleTestCase Test case. |
invoke($method) X-Ref |
Invokes a test method and buffered with setUp() and tearDown() calls. param: string $method Test method to call. |
Classe: SimpleInvokerDecorator - X-Ref
Do nothing decorator. Just passes the invocationSimpleInvokerDecorator($invoker) X-Ref |
Stores the invoker to wrap. param: SimpleInvoker $invoker Test method runner. |
getTestCase() X-Ref |
Accessor for test case being run. return: SimpleTestCase Test case. |
invoke($method) X-Ref |
Invokes a test method and buffered with setUp() and tearDown() calls. param: string $method Test method to call. |
Classe: SimpleRunner - X-Ref
The standard runner. Will run every method startingSimpleRunner($test_case, $scorer) X-Ref |
Takes in the test case and reporter to mediate between. param: SimpleTestCase $test_case Test case to run. param: SimpleScorer $scorer Reporter to receive events. |
getTestCase() X-Ref |
Accessor for test case being run. return: SimpleTestCase Test case. |
run() X-Ref |
Runs the test methods in the test case. param: SimpleTest $test_case Test case to run test on. param: string $method Name of test method. |
_isConstructor($method) X-Ref |
Tests to see if the method is the constructor and so should be ignored. param: string $method Method name to try. return: boolean True if constructor. |
_isTest($method) X-Ref |
Tests to see if the method is a test that should be run. Currently any method that starts with 'test' is a candidate. param: string $method Method name to try. return: boolean True if test method. |
paintMethodStart($test_name) X-Ref |
Paints the start of a test method. param: string $test_name Name of test or other label. |
paintMethodEnd($test_name) X-Ref |
Paints the end of a test method. param: string $test_name Name of test or other label. |
paintPass($message) X-Ref |
Chains to the wrapped reporter. param: string $message Message is ignored. |
paintFail($message) X-Ref |
Chains to the wrapped reporter. param: string $message Message is ignored. |
paintError($message) X-Ref |
Chains to the wrapped reporter. param: string $message Text of error formatted by |
paintException($exception) X-Ref |
Chains to the wrapped reporter. param: Exception $exception Object thrown. |
paintMessage($message) X-Ref |
Chains to the wrapped reporter. param: string $message Text to display. |
paintFormattedMessage($message) X-Ref |
Chains to the wrapped reporter. param: string $message Text to display. |
paintSignal($type, $payload) X-Ref |
Chains to the wrapped reporter. param: string $type Event type as text. param: mixed $payload Message or object. return: boolean Should return false if this |
Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |