/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/TestSuite/Fixture
NameSizeModeActions
FixtureHelper.php109750644editdlrm
FixtureInjector.php37200644editdlrm
FixtureManager.php175590644editdlrm
FixtureStrategyInterface.php11360644editdlrm
PHPUnitExtension.php14870644editdlrm
SchemaLoader.php43680644editdlrm
TestFixture.php128580644editdlrm
TransactionStrategy.php28240644editdlrm
TruncateStrategy.php15510644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/TestSuite/Fixture/FixtureInjector.php (3720B)
setDebug(in_array('--debug', $_SERVER['argv'], true)); } $this->_fixtureManager = $manager; $this->_fixtureManager->shutDown(); TestCase::$fixtureManager = $manager; } /** * Iterates the tests inside a test suite and creates the required fixtures as * they were expressed inside each test case. * * @param \PHPUnit\Framework\TestSuite $suite The test suite * @return void */ public function startTestSuite(TestSuite $suite): void { if (empty($this->_first)) { deprecationWarning( 'You are using the listener based PHPUnit integration. ' . 'This fixture system is deprecated, and we recommend you ' . 'upgrade to the extension based PHPUnit integration. ' . 'See https://book.cakephp.org/4/en/appendices/fixture-upgrade.html', 0 ); $this->_first = $suite; } } /** * Destroys the fixtures created by the fixture manager at the end of the test * suite run * * @param \PHPUnit\Framework\TestSuite $suite The test suite * @return void */ public function endTestSuite(TestSuite $suite): void { if ($this->_first === $suite) { $this->_fixtureManager->shutDown(); } } /** * Adds fixtures to a test case when it starts. * * @param \PHPUnit\Framework\Test $test The test case * @return void */ public function startTest(Test $test): void { if ($test instanceof TestCase) { $this->_fixtureManager->fixturize($test); $this->_fixtureManager->load($test); } } /** * Unloads fixtures from the test case. * * @param \PHPUnit\Framework\Test $test The test case * @param float $time current time * @return void */ public function endTest(Test $test, float $time): void { if ($test instanceof TestCase) { $this->_fixtureManager->unload($test); } } }