프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
public addTest ( Peridot\Core\TestInterface $test ) | ||
$test | Peridot\Core\TestInterface |
public run ( Peridot\Core\TestResult $result ) | ||
$result | Peridot\Core\TestResult |
protected runTest ( Peridot\Core\TestInterface $test, Peridot\Core\TestResult $result ) | ||
$test | Peridot\Core\TestInterface | |
$result | Peridot\Core\TestResult |