PHP Class SelectiveReporter, simpletest

@package SimpleTest
Inheritance: extends SimpleReporterDecorator
Show file Open project: simpletest/simpletest

Public Methods

Method Description
__construct ( SimpleScorer $reporter, string $just_this_case = false, string $just_this_test = false ) Selects the test case or group to be run, and optionally a specific test.
paintGroupEnd ( string $test_case ) Paints the end of a group test.
paintGroupStart ( string $test_case, integer $size ) Paints the start of a group test.
shouldInvoke ( string $test_case, string $method ) : boolean Veto everything that doesn't match the method wanted.

Protected Methods

Method Description
isOn ( ) : boolean Is this group actually being tested?
matchesTestCase ( string $test_case ) : boolean Compares criteria to actual the case/group name.
off ( ) Switch off testing for the group or subgroup.
on ( ) Switch on testing for the group or subgroup.
shouldRunTest ( $test_case, string $method ) : boolean Compares criteria to actual the test name.

Method Details

__construct() public method

Selects the test case or group to be run, and optionally a specific test.
public __construct ( SimpleScorer $reporter, string $just_this_case = false, string $just_this_test = false )
$reporter SimpleScorer Reporter to receive events.
$just_this_case string Only this case or group will run.
$just_this_test string Only this test method will run.

isOn() protected method

Is this group actually being tested?
protected isOn ( ) : boolean
return boolean True if the current test group is active.

matchesTestCase() protected method

Compares criteria to actual the case/group name.
protected matchesTestCase ( string $test_case ) : boolean
$test_case string The incoming test.
return boolean True if matched.

off() protected method

Switch off testing for the group or subgroup.
protected off ( )

on() protected method

Switch on testing for the group or subgroup.
protected on ( )

paintGroupEnd() public method

Paints the end of a group test.
public paintGroupEnd ( string $test_case )
$test_case string Name of test or other label.

paintGroupStart() public method

Paints the start of a group test.
public paintGroupStart ( string $test_case, integer $size )
$test_case string Name of test or other label.
$size integer Number of test cases starting.

shouldInvoke() public method

Veto everything that doesn't match the method wanted.
public shouldInvoke ( string $test_case, string $method ) : boolean
$test_case string Name of test case.
$method string Name of test method.
return boolean True if test should be run.

shouldRunTest() protected method

If no name was specified at the beginning, then all tests can run.
protected shouldRunTest ( $test_case, string $method ) : boolean
$method string The incoming test method.
return boolean True if matched.