PHP 클래스 unittest\SIG_Suite

The suite is designed to run a group of tests together. It is registered as a routine in the processor. All registered tests are registered into a SIG_Test signal constructed when the suite is registered in the processor.
상속: extends XPSPL\SIG_Routine
파일 보기 프로젝트 열기: prggmr/xpspl

보호된 프로퍼티들

프로퍼티 타입 설명
$_teardown Teardown function

공개 메소드들

메소드 설명
__construct ( $function ) Constructs a new suite.
routine ( Routine $routine ) Routine function.
setup ( object $function ) : void Registers a setup function.
teardown ( object $function ) : void Registers a teardown function.
test ( object $function, string $name = null ) : object Creates a new test case in the suite.

메소드 상세

__construct() 공개 메소드

Constructs a new suite.
public __construct ( $function )

routine() 공개 메소드

Routine function.
public routine ( Routine $routine )
$routine XPSPL\Routine

setup() 공개 메소드

Registers a setup function.
public setup ( object $function ) : void
$function object Closure
리턴 void

teardown() 공개 메소드

Registers a teardown function.
public teardown ( object $function ) : void
$function object Closure
리턴 void

test() 공개 메소드

Creates a new test case in the suite.
public test ( object $function, string $name = null ) : object
$function object Test function
$name string Test name
리턴 object SIG_Test

프로퍼티 상세

$_teardown 보호되어 있는 프로퍼티

Teardown function
protected $_teardown