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
Показать файл Открыть проект

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

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