| [ Index ] |
PHP Cross Reference of Limb3 |
[Source view] [Print] [Project Stats]
base include file for SimpleTest
| Version: | $Id: scorer.php 5999 2007-06-18 13:13:08Z pachanga $ |
| File Size: | 863 lines (28 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
SimpleScorer:: (22 methods):
SimpleScorer()
makeDry()
shouldInvoke()
createInvoker()
getStatus()
paintGroupStart()
paintGroupEnd()
paintCaseStart()
paintCaseEnd()
paintMethodStart()
paintMethodEnd()
paintPass()
paintFail()
paintError()
paintException()
paintSkip()
getPassCount()
getFailCount()
getExceptionCount()
paintMessage()
paintFormattedMessage()
paintSignal()
SimpleReporter:: (14 methods):
SimpleReporter()
getDumper()
paintGroupStart()
paintGroupEnd()
paintCaseStart()
paintCaseEnd()
paintMethodStart()
paintMethodEnd()
paintHeader()
paintFooter()
getTestList()
getTestCaseCount()
getTestCaseProgress()
inCli()
SimpleReporterDecorator:: (20 methods):
SimpleReporterDecorator()
makeDry()
getStatus()
shouldInvoke()
createInvoker()
getDumper()
paintGroupStart()
paintGroupEnd()
paintCaseStart()
paintCaseEnd()
paintMethodStart()
paintMethodEnd()
paintPass()
paintFail()
paintError()
paintException()
paintSkip()
paintMessage()
paintFormattedMessage()
paintSignal()
MultipleReporter:: (20 methods):
attachReporter()
makeDry()
getStatus()
shouldInvoke()
createInvoker()
getDumper()
paintGroupStart()
paintGroupEnd()
paintCaseStart()
paintCaseEnd()
paintMethodStart()
paintMethodEnd()
paintPass()
paintFail()
paintError()
paintException()
paintSkip()
paintMessage()
paintFormattedMessage()
paintSignal()
Class: 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. param: string $message Text of error formatted by |
| paintException($exception) X-Ref |
| Deals with PHP 5 throwing an exception. param: Exception $exception The actual exception thrown. |
| paintSkip($message) X-Ref |
| Prints the message for skipping tests. param: string $message Text of skip condition. |
| 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. |
Class: SimpleReporter - X-Ref
Recipient of generated test messages that can display| SimpleReporter() X-Ref |
| Starts the display with no results in. |
| getDumper() X-Ref |
| Gets the formatter for variables and other small generic data items. return: SimpleDumper Formatter. |
| 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. |
Class: SimpleReporterDecorator - X-Ref
For modifying the behaviour of the visual reporters.| SimpleReporterDecorator(&$reporter) X-Ref |
| Mediates between the 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. |
| getDumper() X-Ref |
| Gets the formatter for variables and other small generic data items. return: SimpleDumper Formatter. |
| 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 |
| paintException($exception) X-Ref |
| Chains to the wrapped reporter. param: Exception $exception Exception to show. |
| paintSkip($message) X-Ref |
| Prints the message for skipping tests. param: string $message Text of skip condition. |
| 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 |
Class: 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. |
| getDumper() X-Ref |
| Gets the formatter for variables and other small generic data items. return: SimpleDumper Formatter. |
| 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 |
| paintException($exception) X-Ref |
| Chains to the wrapped reporter. param: Exception $exception Exception to display. |
| paintSkip($message) X-Ref |
| Prints the message for skipping tests. param: string $message Text of skip condition. |
| 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 |
| Generated: Sat Nov 22 03:48:54 2008 | Cross-referenced by PHPXref 0.7 |