| [ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
base include file for SimpleTest
| Version: | $Id: scorer.php 1526 2006-11-28 23:34:00Z wei $ |
| Poids: | 777 lignes (26 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
SimpleScorer:: (20 méthodes):
SimpleScorer()
makeDry()
shouldInvoke()
createInvoker()
getStatus()
paintGroupStart()
paintGroupEnd()
paintCaseStart()
paintCaseEnd()
paintMethodStart()
paintMethodEnd()
paintPass()
paintFail()
paintError()
getPassCount()
getFailCount()
getExceptionCount()
paintMessage()
paintFormattedMessage()
paintSignal()
SimpleReporter:: (13 méthodes):
SimpleReporter()
paintGroupStart()
paintGroupEnd()
paintCaseStart()
paintCaseEnd()
paintMethodStart()
paintMethodEnd()
paintHeader()
paintFooter()
getTestList()
getTestCaseCount()
getTestCaseProgress()
inCli()
SimpleReporterDecorator:: (17 méthodes):
SimpleReporterDecorator()
makeDry()
getStatus()
shouldInvoke()
createInvoker()
paintGroupStart()
paintGroupEnd()
paintCaseStart()
paintCaseEnd()
paintMethodStart()
paintMethodEnd()
paintPass()
paintFail()
paintError()
paintMessage()
paintFormattedMessage()
paintSignal()
MultipleReporter:: (17 méthodes):
attachReporter()
makeDry()
getStatus()
shouldInvoke()
createInvoker()
paintGroupStart()
paintGroupEnd()
paintCaseStart()
paintCaseEnd()
paintMethodStart()
paintMethodEnd()
paintPass()
paintFail()
paintError()
paintMessage()
paintFormattedMessage()
paintSignal()
Classe: SimpleScorer - X-Ref
Can recieve test events and display them. Display| SimpleScorer() X-Ref |
| Starts the test run with no results. |
| makeDry($is_dry = true) X-Ref |
| Signals that the next evaluation will be a dry run. That is, the structure events will be recorded, but no tests will be run. param: boolean $is_dry Dry run if true. |
| shouldInvoke($test_case_name, $method) X-Ref |
| The reporter has a veto on what should be run. param: string $test_case_name name of test case. param: string $method Name of test method. |
| createInvoker($invoker) X-Ref |
| Can wrap the invoker in preperation for running a test. param: SimpleInvoker $invoker Individual test runner. return: SimpleInvoker Wrapped test runner. |
| getStatus() X-Ref |
| Accessor for current status. Will be false if there have been any failures or exceptions. Used for command line tools. return: boolean True if no failures. |
| paintGroupStart($test_name, $size) X-Ref |
| Paints the start of a group test. param: string $test_name Name of test or other label. param: integer $size Number of test cases starting. |
| paintGroupEnd($test_name) X-Ref |
| Paints the end of a group test. param: string $test_name Name of test or other label. |
| paintCaseStart($test_name) X-Ref |
| Paints the start of a test case. param: string $test_name Name of test or other label. |
| paintCaseEnd($test_name) X-Ref |
| Paints the end of a test case. param: string $test_name Name of test or other label. |
| 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 |
| Increments the pass count. param: string $message Message is ignored. |
| paintFail($message) X-Ref |
| Increments the fail count. param: string $message Message is ignored. |
| paintError($message) X-Ref |
| Deals with PHP 4 throwing an error or PHP 5 throwing an exception. param: string $message Text of error formatted by |
| getPassCount() X-Ref |
| Accessor for the number of passes so far. return: integer Number of passes. |
| getFailCount() X-Ref |
| Accessor for the number of fails so far. return: integer Number of fails. |
| getExceptionCount() X-Ref |
| Accessor for the number of untrapped errors so far. return: integer Number of exceptions. |
| paintMessage($message) X-Ref |
| Paints a simple supplementary message. param: string $message Text to display. |
| paintFormattedMessage($message) X-Ref |
| Paints a formatted ASCII message such as a variable dump. param: string $message Text to display. |
| paintSignal($type, $payload) X-Ref |
| By default just ignores user generated events. param: string $type Event type as text. param: mixed $payload Message or object. |
Classe: SimpleReporter - X-Ref
Recipient of generated test messages that can display| SimpleReporter() X-Ref |
| Starts the display with no results in. |
| paintGroupStart($test_name, $size) X-Ref |
| Paints the start of a group test. Will also paint the page header and footer if this is the first test. Will stash the size if the first start. param: string $test_name Name of test that is starting. param: integer $size Number of test cases starting. |
| paintGroupEnd($test_name) X-Ref |
| Paints the end of a group test. Will paint the page footer if the stack of tests has unwound. param: string $test_name Name of test that is ending. param: integer $progress Number of test cases ending. |
| paintCaseStart($test_name) X-Ref |
| Paints the start of a test case. Will also paint the page header and footer if this is the first test. Will stash the size if the first start. param: string $test_name Name of test that is starting. |
| paintCaseEnd($test_name) X-Ref |
| Paints the end of a test case. Will paint the page footer if the stack of tests has unwound. param: string $test_name Name of test that is ending. |
| paintMethodStart($test_name) X-Ref |
| Paints the start of a test method. param: string $test_name Name of test that is starting. |
| paintMethodEnd($test_name) X-Ref |
| Paints the end of a test method. Will paint the page footer if the stack of tests has unwound. param: string $test_name Name of test that is ending. |
| paintHeader($test_name) X-Ref |
| Paints the test document header. param: string $test_name First test top level |
| paintFooter($test_name) X-Ref |
| Paints the test document footer. param: string $test_name The top level test. |
| getTestList() X-Ref |
| Accessor for internal test stack. For subclasses that need to see the whole test history for display purposes. return: array List of methods in nesting order. |
| getTestCaseCount() X-Ref |
| Accessor for total test size in number of test cases. Null until the first test is started. return: integer Total number of cases at start. |
| getTestCaseProgress() X-Ref |
| Accessor for the number of test cases completed so far. return: integer Number of ended cases. |
| inCli() X-Ref |
| Static check for running in the comand line. return: boolean True if CLI. |
Classe: SimpleReporterDecorator - X-Ref
For modifying the behaviour of the visual reporters.| SimpleReporterDecorator($reporter) X-Ref |
| Mediates between teh reporter and the test case. param: SimpleScorer $reporter Reporter to receive events. |
| makeDry($is_dry = true) X-Ref |
| Signals that the next evaluation will be a dry run. That is, the structure events will be recorded, but no tests will be run. param: boolean $is_dry Dry run if true. |
| getStatus() X-Ref |
| Accessor for current status. Will be false if there have been any failures or exceptions. Used for command line tools. return: boolean True if no failures. |
| shouldInvoke($test_case_name, $method) X-Ref |
| The reporter has a veto on what should be run. param: string $test_case_name name of test case. param: string $method Name of test method. return: boolean True if test should be run. |
| createInvoker($invoker) X-Ref |
| Can wrap the invoker in preperation for running a test. param: SimpleInvoker $invoker Individual test runner. return: SimpleInvoker Wrapped test runner. |
| paintGroupStart($test_name, $size) X-Ref |
| Paints the start of a group test. param: string $test_name Name of test or other label. param: integer $size Number of test cases starting. |
| paintGroupEnd($test_name) X-Ref |
| Paints the end of a group test. param: string $test_name Name of test or other label. |
| paintCaseStart($test_name) X-Ref |
| Paints the start of a test case. param: string $test_name Name of test or other label. |
| paintCaseEnd($test_name) X-Ref |
| Paints the end of a test case. param: string $test_name Name of test or other label. |
| 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 |
| 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 |
Classe: MultipleReporter - X-Ref
For sending messages to multiple reporters at| attachReporter($reporter) X-Ref |
| Adds a reporter to the subscriber list. param: SimpleScorer $reporter Reporter to receive events. |
| makeDry($is_dry = true) X-Ref |
| Signals that the next evaluation will be a dry run. That is, the structure events will be recorded, but no tests will be run. param: boolean $is_dry Dry run if true. |
| getStatus() X-Ref |
| Accessor for current status. Will be false if there have been any failures or exceptions. If any reporter reports a failure, the whole suite fails. return: boolean True if no failures. |
| shouldInvoke($test_case_name, $method) X-Ref |
| The reporter has a veto on what should be run. It requires all reporters to want to run the method. param: string $test_case_name name of test case. param: string $method Name of test method. |
| createInvoker($invoker) X-Ref |
| Every reporter gets a chance to wrap the invoker. param: SimpleInvoker $invoker Individual test runner. return: SimpleInvoker Wrapped test runner. |
| paintGroupStart($test_name, $size) X-Ref |
| Paints the start of a group test. param: string $test_name Name of test or other label. param: integer $size Number of test cases starting. |
| paintGroupEnd($test_name) X-Ref |
| Paints the end of a group test. param: string $test_name Name of test or other label. |
| paintCaseStart($test_name) X-Ref |
| Paints the start of a test case. param: string $test_name Name of test or other label. |
| paintCaseEnd($test_name) X-Ref |
| Paints the end of a test case. param: string $test_name Name of test or other label. |
| 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 |
| 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 |