PHP Class Kraken\Test\TModule

Inheritance: extends TUnit
显示文件 Open project: kraken-php/framework Class Usage Examples

Public Methods

Method Description
assertEvents ( Event[] $actualEvents = [], Event[] $expectedEvents = [], integer $flags = Simulation::EVENTS_COMPARE_IN_ORDER )
expect ( $events, integer $flags = Simulation::EVENTS_COMPARE_IN_ORDER ) : TModule
getLoop ( ) : Kraken\Loop\LoopInterface
setUp ( )
simulate ( callable $scenario ) : TModule Run test scenario as simulation.
tearDown ( )

Method Details

assertEvents() public method

public assertEvents ( Event[] $actualEvents = [], Event[] $expectedEvents = [], integer $flags = Simulation::EVENTS_COMPARE_IN_ORDER )
$actualEvents Kraken\Test\Simulation\Event[]
$expectedEvents Kraken\Test\Simulation\Event[]
$flags integer

expect() public method

public expect ( $events, integer $flags = Simulation::EVENTS_COMPARE_IN_ORDER ) : TModule
$events
$flags integer
return TModule

getLoop() public method

public getLoop ( ) : Kraken\Loop\LoopInterface
return Kraken\Loop\LoopInterface

setUp() public method

public setUp ( )

simulate() public method

Run test scenario as simulation.
public simulate ( callable $scenario ) : TModule
$scenario callable
return TModule

tearDown() public method

public tearDown ( )