PHP 클래스 SelectiveReporter, simpletest

@package SimpleTest
상속: extends SimpleReporterDecorator
파일 보기 프로젝트 열기: simpletest/simpletest

공개 메소드들

메소드 설명
__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.