PHP Класс Peridot\Core\Suite

Наследование: extends Peridot\Core\AbstractTest
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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