Class SimpleRunnerDecorator

Description

Modifies the test running behaviour of the standard runner by wrapping it. This is a do nothing version.

Subclass this for soak testers and statistical testers.

Located in /libraries/pear/simpletest/runner.php (line 221)


	
			
Variable Summary
 mixed $_runner
Method Summary
 SimpleRunnerDecorator SimpleRunnerDecorator (SimpleRunner &$runner)
 void invoke (SimpleTest &$test_case, string $method)
 void paintError (string $message)
 void paintException (Exception $exception)
 void paintFail (string $message)
 void paintFormattedMessage (string $message)
 void paintMessage (string $message)
 void paintPass (string $message)
 boolean paintSignal (string $type, mixed &$payload)
Variables
mixed $_runner (line 222)
Methods
Constructor SimpleRunnerDecorator (line 228)

Takes in the reporter to wrap.

SimpleRunnerDecorator SimpleRunnerDecorator (SimpleRunner &$runner)
invoke (line 238)

Runs the method once on the test case.

  • access: public
void invoke (SimpleTest &$test_case, string $method)
  • SimpleTest $test_case: Test case to run test on.
  • string $method: Name of test method.
paintError (line 266)

Chains to the wrapped runner.

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

Chains to the wrapped runner.

  • access: public
void paintException (Exception $exception)
  • Exception $exception: Object thrown.
paintFail (line 256)

Chains to the wrapped runner.

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

Chains to the wrapped runner.

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

Chains to the wrapped runner.

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

Chains to the wrapped runner.

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

Chains to the wrapped runner.

  • 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.

Documentation generated on Fri, 3 Dec 2004 12:27:26 +0000 by phpDocumentor 1.3.0RC3