Test listener used to inject a fixture manager in all tests that are composed inside a Test Suite
PHPUnit\Framework\TestSuite|nullHolds a reference to the container test suite
Cake\TestSuite\Fixture\FixtureManagerThe instance of the fixture manager to use
Constructor. Save internally the reference to the passed fixture manager
Unloads fixtures from the test case.
Destroys the fixtures created by the fixture manager at the end of the test suite run
Adds fixtures to a test case when it starts.
Iterates the tests inside a test suite and creates the required fixtures as they were expressed inside each test case.
__construct(Cake\TestSuite\Fixture\FixtureManager $manager)
Constructor. Save internally the reference to the passed fixture manager
Cake\TestSuite\Fixture\FixtureManager $manager The fixture manager
addError(Test $test, Throwable $t, float $time): void
Test $test Throwable $t float $time voidaddFailure(Test $test, AssertionFailedError $e, float $time): void
Test $test AssertionFailedError $e float $time voidaddIncompleteTest(Test $test, Throwable $t, float $time): void
Test $test Throwable $t float $time voidaddRiskyTest(Test $test, Throwable $t, float $time): void
Test $test Throwable $t float $time voidaddSkippedTest(Test $test, Throwable $t, float $time): void
Test $test Throwable $t float $time voidaddWarning(Test $test, Warning $e, float $time): void
Test $test Warning $e float $time voidendTest(Test $test, float $time): void
Unloads fixtures from the test case.
Test $test The test case
float $time current time
voidendTestSuite(TestSuite $suite): void
Destroys the fixtures created by the fixture manager at the end of the test suite run
TestSuite $suite The test suite
voidstartTest(Test $test): void
Adds fixtures to a test case when it starts.
Test $test The test case
voidstartTestSuite(TestSuite $suite): void
Iterates the tests inside a test suite and creates the required fixtures as they were expressed inside each test case.
TestSuite $suite The test suite
voidHolds a reference to the container test suite
PHPUnit\Framework\TestSuite|nullThe instance of the fixture manager to use
Cake\TestSuite\Fixture\FixtureManager
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/class-Cake.TestSuite.Fixture.FixtureInjector.html