diff --git a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC742Test.php b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC742Test.php index cdef5aa42..47ba18564 100644 --- a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC742Test.php +++ b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC742Test.php @@ -10,16 +10,6 @@ use Doctrine\Common\Collections\ArrayCollection; */ class DDC742Test extends \Doctrine\Tests\OrmFunctionalTestCase { - /** - * @var string - */ - private $testDir; - - /** - * @var FilesystemCache - */ - private $cache; - /** * {@inheritDoc} */ @@ -31,11 +21,8 @@ class DDC742Test extends \Doctrine\Tests\OrmFunctionalTestCase mkdir($testDir); - $this->testDir = $testDir; - $this->cache = new FilesystemCache($testDir); - // using a Filesystemcache to ensure that the cached data is serialized - $this->_em->getMetadataFactory()->setCacheDriver($this->cache); + $this->_em->getMetadataFactory()->setCacheDriver(new FilesystemCache($testDir)); try { $this->_schemaTool->createSchema(array( @@ -50,15 +37,6 @@ class DDC742Test extends \Doctrine\Tests\OrmFunctionalTestCase $this->_em->getMetadataFactory()->setMetadataFor(__NAMESPACE__ . '\DDC742Comment', null); } - /** - * {@inheritDoc} - */ - protected function tearDown() - { - $this->cache->deleteAll(); - rmdir($this->testDir); - } - public function testIssue() { $user = new DDC742User();