Class SelectiveReporter

Description

Runs just a single test group, a single case or even a single test within that case.

Located in /reporter.php (line 314)

SimpleReporterDecorator
   |
   --SelectiveReporter
Variable Summary
Method Summary
 SelectiveReporter SelectiveReporter ( &$reporter, [string $just_this_case = false], [string $just_this_test = false], SimpleScorer $reporter)
 void paintGroupEnd (string $test_case)
 void paintGroupStart (string $test_case, integer $size)
 boolean shouldInvoke (string $test_case, string $method)
 boolean _matchesTestCase (string $test_case)
 boolean _shouldRunTest ( $test_case, string $method)
Variables
mixed $_just_this_case = false (line 315)
mixed $_just_this_test = false (line 316)
mixed $_on (line 317)

Inherited Variables

Inherited from SimpleReporterDecorator

SimpleReporterDecorator::$_reporter
Methods
Constructor SelectiveReporter (line 326)

Selects the test case or group to be run, and optionally a specific test.

SelectiveReporter SelectiveReporter ( &$reporter, [string $just_this_case = false], [string $just_this_test = false], SimpleScorer $reporter)
  • SimpleScorer $reporter: Reporter to receive events.
  • string $just_this_case: Only this case or group will run.
  • string $just_this_test: Only this test method will run.
  • &$reporter
paintGroupEnd (line 425)

Paints the end of a group test.

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

Redefinition of:
SimpleReporterDecorator::paintGroupEnd()
Paints the end of a group test.
paintGroupStart (line 413)

Paints the start of a group test.

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

Redefinition of:
SimpleReporterDecorator::paintGroupStart()
Paints the start of a group test.
shouldInvoke (line 400)

Veto everything that doesn't match the method wanted.

  • return: True if test should be run.
  • access: public
boolean shouldInvoke (string $test_case, string $method)
  • string $test_case: Name of test case.
  • string $method: Name of test method.

Redefinition of:
SimpleReporterDecorator::shouldInvoke()
The reporter has a veto on what should be run.
_matchesTestCase (line 345)

Compares criteria to actual the case/group name.

  • return: True if matched.
  • access: protected
boolean _matchesTestCase (string $test_case)
  • string $test_case: The incoming test.
_shouldRunTest (line 357)

Compares criteria to actual the test name. If no name was specified at the beginning, then all tests can run.

  • return: True if matched.
  • access: protected
boolean _shouldRunTest ( $test_case, string $method)
  • string $method: The incoming test method.
  • $test_case

Inherited Methods

Inherited From SimpleReporterDecorator

 SimpleReporterDecorator::SimpleReporterDecorator()
 SimpleReporterDecorator::createInvoker()
 SimpleReporterDecorator::getDumper()
 SimpleReporterDecorator::getStatus()
 SimpleReporterDecorator::makeDry()
 SimpleReporterDecorator::paintCaseEnd()
 SimpleReporterDecorator::paintCaseStart()
 SimpleReporterDecorator::paintError()
 SimpleReporterDecorator::paintException()
 SimpleReporterDecorator::paintFail()
 SimpleReporterDecorator::paintFormattedMessage()
 SimpleReporterDecorator::paintGroupEnd()
 SimpleReporterDecorator::paintGroupStart()
 SimpleReporterDecorator::paintMessage()
 SimpleReporterDecorator::paintMethodEnd()
 SimpleReporterDecorator::paintMethodStart()
 SimpleReporterDecorator::paintPass()
 SimpleReporterDecorator::paintSignal()
 SimpleReporterDecorator::paintSkip()
 SimpleReporterDecorator::shouldInvoke()

Documentation generated on Sun, 04 May 2008 09:22:02 -0500 by phpDocumentor 1.3.0