PHP Класс SelectiveReporter, simpletest

@package SimpleTest
Наследование: extends SimpleReporterDecorator
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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() защищенный Метод

Is this group actually being tested?
protected isOn ( ) : boolean
Результат boolean True if the current test group is active.

matchesTestCase() защищенный Метод

Compares criteria to actual the case/group name.
protected matchesTestCase ( string $test_case ) : boolean
$test_case string The incoming test.
Результат boolean True if matched.

off() защищенный Метод

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

on() защищенный Метод

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

paintGroupEnd() публичный Метод

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

paintGroupStart() публичный Метод

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() публичный Метод

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.
Результат boolean True if test should be run.

shouldRunTest() защищенный Метод

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.
Результат boolean True if matched.