class KernelTestState implements TestState (View source)

Handles nesting of kernel before / after tests

Properties

protected TestKernel[] $kernels

Stack of kernels

Methods

protected
kernel()

Get active Kernel instance

public
setUp(SapphireTest $test)

Called on setup

public
tearDown(SapphireTest $test)

Called on tear down

public
setUpOnce(string $class)

Called once on setup

public
tearDownOnce(string $class)

Called once on tear down

protected
nest()

Nest the current kernel

protected
unnest()

No description

Details

protected TestKernel kernel()

Get active Kernel instance

Return Value

TestKernel

setUp(SapphireTest $test)

Called on setup

Parameters

SapphireTest $test

tearDown(SapphireTest $test)

Called on tear down

Parameters

SapphireTest $test

setUpOnce(string $class)

Called once on setup

Parameters

string $class

Class being setup

tearDownOnce(string $class)

Called once on tear down

Parameters

string $class

Class being torn down

protected nest()

Nest the current kernel

protected unnest()

No description