PHP 클래스 Peridot\Core\Suite

상속: extends Peridot\Core\AbstractTest
파일 보기 프로젝트 열기: peridot-php/peridot 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$halted boolean Has the suite been halted
$tests array Tests belonging to this suite

공개 메소드들

메소드 설명
addTest ( Peridot\Core\TestInterface $test ) Add a test to the suite
define ( ) : void Execute the Suite definition.
getTests ( ) : array Return collection of tests
halt ( ) : void Put the Suite in a halted state. A halted Suite will not run or will stop running if currently running.
run ( Peridot\Core\TestResult $result ) Run all the specs belonging to the suite
setTests ( array $tests ) Set suite tests

보호된 메소드들

메소드 설명
runTest ( Peridot\Core\TestInterface $test, Peridot\Core\TestResult $result ) Run a test and track its results.

메소드 상세

addTest() 공개 메소드

Add a test to the suite
public addTest ( Peridot\Core\TestInterface $test )
$test Peridot\Core\TestInterface

define() 공개 메소드

Execute the Suite definition.
public define ( ) : void
리턴 void

getTests() 공개 메소드

Return collection of tests
public getTests ( ) : array
리턴 array

halt() 공개 메소드

Put the Suite in a halted state. A halted Suite will not run or will stop running if currently running.
public halt ( ) : void
리턴 void

run() 공개 메소드

Run all the specs belonging to the suite
public run ( Peridot\Core\TestResult $result )
$result Peridot\Core\TestResult

runTest() 보호된 메소드

Run a test and track its results.
protected runTest ( Peridot\Core\TestInterface $test, Peridot\Core\TestResult $result )
$test Peridot\Core\TestInterface
$result Peridot\Core\TestResult

setTests() 공개 메소드

Set suite tests
public setTests ( array $tests )
$tests array

프로퍼티 상세

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

Has the suite been halted
protected bool $halted
리턴 boolean

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

Tests belonging to this suite
protected array $tests
리턴 array