From 2b2d9e7a1d46603610e14908011c3f81040bbaed Mon Sep 17 00:00:00 2001 From: Guilherme Blanco <guilhermeblanco@gmail.com> Date: Sat, 19 Feb 2011 17:20:37 -0200 Subject: [PATCH] Fixed wrong test. It was failing if you have memcache extension loaded. --- tests/Doctrine/Tests/ORM/Functional/Ticket/DDC742Test.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC742Test.php b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC742Test.php index ad6585449..513904418 100644 --- a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC742Test.php +++ b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC742Test.php @@ -13,7 +13,13 @@ class DDC742Test extends \Doctrine\Tests\OrmFunctionalTestCase parent::setUp(); if (\extension_loaded('memcache')) { - $this->_em->getMetadataFactory()->setCacheDriver(new \Doctrine\Common\Cache\MemcacheCache()); + $memcache = new \Memcache(); + $memcache->addServer('localhost'); + + $cacheDriver = new \Doctrine\Common\Cache\MemcacheCache(); + $cacheDriver->setMemcache($memcache); + + $this->_em->getMetadataFactory()->setCacheDriver($cacheDriver); } else if (\extension_loaded('apc')) { $this->_em->getMetadataFactory()->setCacheDriver(new \Doctrine\Common\Cache\ApcCache()); }