Checking test to avoid fatal error when the test case dont have test actions.

This commit is contained in:
Juan Basso 2011-01-21 13:34:34 -02:00
parent 1debcb9ce6
commit 646bb936bf

View file

@ -83,12 +83,13 @@ class CakeTestSuite extends PHPUnit_Framework_TestSuite {
if (!$this->_fixtureManager) {
return;
}
$classes = array();
foreach ($this->getIterator() as $test) {
if ($test instanceof CakeTestCase) {
$this->_fixtureManager->fixturize($test);
$test->fixtureManager = $this->_fixtureManager;
}
}
}
/**
* Method that is called after all the tests of this test suite are run.