Adding a condition for the fixture creation so it doesn't cause errors.

This commit is contained in:
mark_story 2010-06-12 23:31:36 -04:00
parent 86eb46ca87
commit 6300027a87

View file

@ -62,7 +62,9 @@ class CakeTestSuite extends PHPUnit_Framework_TestSuite {
*/
protected function tearDown() {
parent::tearDown();
$this->_fixtureManager->shutDown();
if ($this->_fixtureManager) {
$this->_fixtureManager->shutDown();
}
$this->_fixtureManager = null;
$this->sharedFixture = null;
}