Class MultipleReporter

Description

For sending messages to multiple reporters at the same time.

Located in /scorer.php (line 634)


	
			
Method Summary
 void attachReporter (SimpleScorer $reporter)
 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)
 boolean paintSignal (string $type, mixed $payload)
 void paintSkip (string $message)
 void shouldInvoke (string $test_case_name, string $method)
Methods
attachReporter (line 642)

Adds a reporter to the subscriber list.

  • access: public
void attachReporter (SimpleScorer $reporter)
createInvoker (line 698)

Every reporter gets a chance to wrap the invoker.

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

Gets the formatter for privateiables and other small generic data items.

  • return: Formatter.
  • access: public
SimpleDumper getDumper ()
getStatus (line 667)

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: True if no failures.
  • access: public
boolean getStatus ()
makeDry (line 653)

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 754)

Paints the end of a test case.

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

Paints the start of a test case.

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

Chains to the wrapped reporter.

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

Chains to the wrapped reporter.

  • access: public
void paintException (Exception $exception)
  • Exception $exception: Exception to display.
paintFail (line 798)

Chains to the wrapped reporter.

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

Chains to the wrapped reporter.

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

Paints the end of a group test.

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

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.
paintMessage (line 843)

Chains to the wrapped reporter.

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

Paints the end of a test method.

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

Paints the start of a test method.

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

Chains to the wrapped reporter.

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

Chains to the wrapped reporter.

  • return: Should return false if this type of signal should fail the test suite.
  • access: public
boolean paintSignal (string $type, mixed $payload)
  • string $type: Event type as text.
  • mixed $payload: Message or object.
paintSkip (line 832)

Prints the message for skipping tests.

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

The reporter has a veto on what should be run.

It requires all reporters to want to run the method.

  • 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:17 -0500 by phpDocumentor 1.4.3