interface TestState implements TestOnly

Helper for resetting, booting, or cleaning up test state.

SapphireTest will detect all implementors of this interface during test execution

Methods

setUp(SapphireTest $test)

Called on setup

tearDown(SapphireTest $test)

Called on tear down

setUpOnce(string $class)

Called once on setup

tearDownOnce(string $class)

Called once on tear down

Details

at line 20
setUp(SapphireTest $test)

Called on setup

Parameters

SapphireTest $test

at line 27
tearDown(SapphireTest $test)

Called on tear down

Parameters

SapphireTest $test

at line 34
setUpOnce(string $class)

Called once on setup

Parameters

string $class Class being setup

at line 41
tearDownOnce(string $class)

Called once on tear down

Parameters

string $class Class being torn down