Abstract Class SimpleScorer

Description

Can receive test events and display them. Display is achieved by making display methods available and visiting the incoming event.

  • abstract:

Located in /scorer.php (line 21)


	
			
Direct descendents
Class Description
 class SimpleReporter Recipient of generated test messages that can display page footers and headers. Also keeps track of the test nesting. This is the main base class on which to build the finished test (page based) displays.
 class EclipseReporter base reported class for eclipse plugin
Method Summary
 SimpleScorer __construct ()
 integer getExceptionCount ()
 integer getFailCount ()
 integer getPassCount ()
 boolean getStatus ()
 void makeDry ([boolean $is_dry = true])
 void paintCaseEnd (string $test_name)
 void paintCaseStart (string $test_name)
 void paintError (string $message)
 void paintException (Exception $exception)
 void paintFail (string $message)
 void paintFormattedMessage (string $message)
 void paintGroupEnd (string $test_name)
 void paintGroupStart (string $test_name, integer $size)
 void paintMessage (string $message)
 void paintMethodEnd (string $test_name)
 void paintMethodStart (string $test_name)
 void paintPass (string $message)
 void paintSignal (string $type, mixed $payload)
 void paintSkip (string $message)
 void shouldInvoke (string $test_case_name, string $method)
Methods
Constructor __construct (line 31)

Starts the test run with no results.

  • access: public
SimpleScorer __construct ()

Redefined in descendants as:
createInvoker (line 66)

Can wrap the invoker in preperation for running a test.

  • return: Wrapped test runner.
  • access: public
SimpleInvoker createInvoker (SimpleInvoker $invoker)

Redefined in descendants as:
getExceptionCount (line 202)

Accessor for the number of untrapped errors so far.

  • return: Number of exceptions.
  • access: public
integer getExceptionCount ()
getFailCount (line 192)

Accessor for the number of fails so far.

  • return: Number of fails.
  • access: public
integer getFailCount ()
getPassCount (line 183)

Accessor for the number of passes so far.

  • return: Number of passes.
  • access: public
integer getPassCount ()
getStatus (line 77)

Accessor for current status. Will be false if there have been any failures or exceptions.

Used for command line tools.

  • return: True if no failures.
  • access: public
boolean getStatus ()
makeDry (line 45)

Signals that the next evaluation will be a dry run. That is, the structure events will be recorded, but no tests will be run.

  • access: public
void makeDry ([boolean $is_dry = true])
  • boolean $is_dry: Dry run if true.
paintCaseEnd (line 114)

Paints the end of a test case.

  • access: public
void paintCaseEnd (string $test_name)
  • string $test_name: Name of test or other label.

Redefined in descendants as:
paintCaseStart (line 106)

Paints the start of a test case.

  • access: public
void paintCaseStart (string $test_name)
  • string $test_name: Name of test or other label.

Redefined in descendants as:
paintError (line 157)

Deals with PHP 4 throwing an error.

  • access: public
void paintError (string $message)
  • string $message: Text of error formatted by the test case.

Redefined in descendants as:
paintException (line 166)

Deals with PHP 5 throwing an exception.

  • access: public
void paintException (Exception $exception)
  • Exception $exception: The actual exception thrown.

Redefined in descendants as:
paintFail (line 147)

Increments the fail count.

  • access: public
void paintFail (string $message)
  • string $message: Message is ignored.

Redefined in descendants as:
paintFormattedMessage (line 220)

Paints a formatted ASCII message such as a privateiable dump.

  • access: public
void paintFormattedMessage (string $message)
  • string $message: Text to display.

Redefined in descendants as:
paintGroupEnd (line 98)

Paints the end of a group test.

  • access: public
void paintGroupEnd (string $test_name)
  • string $test_name: Name of test or other label.

Redefined in descendants as:
paintGroupStart (line 90)

Paints the start of a group test.

  • access: public
void paintGroupStart (string $test_name, integer $size)
  • string $test_name: Name of test or other label.
  • integer $size: Number of test cases starting.

Redefined in descendants as:
paintMessage (line 211)

Paints a simple supplementary message.

  • access: public
void paintMessage (string $message)
  • string $message: Text to display.

Redefined in descendants as:
paintMethodEnd (line 130)

Paints the end of a test method.

  • access: public
void paintMethodEnd (string $test_name)
  • string $test_name: Name of test or other label.

Redefined in descendants as:
paintMethodStart (line 122)

Paints the start of a test method.

  • access: public
void paintMethodStart (string $test_name)
  • string $test_name: Name of test or other label.

Redefined in descendants as:
paintPass (line 138)

Increments the pass count.

  • access: public
void paintPass (string $message)
  • string $message: Message is ignored.

Redefined in descendants as:
paintSignal (line 229)

By default just ignores user generated events.

  • access: public
void paintSignal (string $type, mixed $payload)
  • string $type: Event type as text.
  • mixed $payload: Message or object.

Redefined in descendants as:
paintSkip (line 175)

Prints the message for skipping tests.

  • access: public
void paintSkip (string $message)
  • string $message: Text of skip condition.

Redefined in descendants as:
shouldInvoke (line 55)

The reporter has a veto on what should be run.

  • access: public
void shouldInvoke (string $test_case_name, string $method)
  • string $test_case_name: name of test case.
  • string $method: Name of test method.

Documentation generated on Sun, 31 Oct 2010 16:32:18 -0500 by phpDocumentor 1.4.3