\Cake\TestSuite\FixtureFixtureInjector

Test listener used to inject a fixture manager in all tests that are composed inside a Test Suite

Summary

Methods
Properties
Constants
__construct()
startTestSuite()
endTestSuite()
startTest()
endTest()
No public properties found
No constants found
No protected methods found
$_fixtureManager
$_first
N/A
No private methods found
No private properties found
N/A

Properties

$_first

$_first : \PHPUnit\Framework\TestSuite

Holds a reference to the container test suite

Type

\PHPUnit\Framework\TestSuite

Methods

__construct()

__construct(\Cake\TestSuite\Fixture\FixtureManager  $manager) 

Constructor. Save internally the reference to the passed fixture manager

Parameters

\Cake\TestSuite\Fixture\FixtureManager $manager

The fixture manager

startTestSuite()

startTestSuite(\PHPUnit\Framework\TestSuite  $suite) : void

Iterates the tests inside a test suite and creates the required fixtures as they were expressed inside each test case.

Parameters

\PHPUnit\Framework\TestSuite $suite

The test suite

endTestSuite()

endTestSuite(\PHPUnit\Framework\TestSuite  $suite) : void

Destroys the fixtures created by the fixture manager at the end of the test suite run

Parameters

\PHPUnit\Framework\TestSuite $suite

The test suite

startTest()

startTest(\PHPUnit\Framework\Test  $test) : void

Adds fixtures to a test case when it starts.

Parameters

\PHPUnit\Framework\Test $test

The test case

endTest()

endTest(\PHPUnit\Framework\Test  $test, float  $time) : void

Unloads fixtures from the test case.

Parameters

\PHPUnit\Framework\Test $test

The test case

float $time

current time