PHP Class SelectiveReporter, simpletest

@package SimpleTest
Inheritance: extends SimpleReporterDecorator
Afficher le fichier Open project: simpletest/simpletest

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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 méthode

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

matchesTestCase() protected méthode

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

off() protected méthode

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

on() protected méthode

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

paintGroupEnd() public méthode

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

paintGroupStart() public méthode

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 méthode

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.
Résultat boolean True if test should be run.

shouldRunTest() protected méthode

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.
Résultat boolean True if matched.