diff --git a/cake/tests/lib/cake_test_suite.php b/cake/tests/lib/cake_test_suite.php new file mode 100644 index 000000000..c83612509 --- /dev/null +++ b/cake/tests/lib/cake_test_suite.php @@ -0,0 +1,29 @@ +_fixtureManager = $manager; + } + + protected function setUp() { + parent::setUp(); + if (!$this->_fixtureManager) { + return; + } + $classes = array(); + foreach ($this->getIterator() as $test) { + $this->_fixtureManager->fixturize($test); + } + $this->sharedFixture = $this->_fixtureManager; + } + + protected function tearDown() { + parent::tearDown(); + $this->_fixtureManager->shutDown(); + $this->_fixtureManager = null; + $this->sharedFixture = null; + } +} \ No newline at end of file