PHP Class 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.
Inheritance: extends XPSPL\SIG_Routine
Afficher le fichier Open project: prggmr/xpspl

Protected Properties

Свойство Type Description
$_teardown Teardown function

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

Constructs a new suite.
public __construct ( $function )

routine() public méthode

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

setup() public méthode

Registers a setup function.
public setup ( object $function ) : void
$function object Closure
Résultat void

teardown() public méthode

Registers a teardown function.
public teardown ( object $function ) : void
$function object Closure
Résultat void

test() public méthode

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

Property Details

$_teardown protected_oe property

Teardown function
protected $_teardown