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,10 +83,11 @@ class CakeTestSuite extends PHPUnit_Framework_TestSuite {
if (!$this->_fixtureManager) {
return;
}
$classes = array();
foreach ($this->getIterator() as $test) {
$this->_fixtureManager->fixturize($test);
$test->fixtureManager = $this->_fixtureManager;
if ($test instanceof CakeTestCase) {
$this->_fixtureManager->fixturize($test);
$test->fixtureManager = $this->_fixtureManager;
}
}
}