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
Mostrar archivo Open project: prggmr/xpspl

Protected Properties

Property Type Description
$_teardown Teardown function

Public Methods

Method 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 method

Constructs a new suite.
public __construct ( $function )

routine() public method

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

setup() public method

Registers a setup function.
public setup ( object $function ) : void
$function object Closure
return void

teardown() public method

Registers a teardown function.
public teardown ( object $function ) : void
$function object Closure
return void

test() public method

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

Property Details

$_teardown protected_oe property

Teardown function
protected $_teardown