DDC-742 - Flush Memcache, otherwise fail.
This commit is contained in:
parent
d39760ba49
commit
e0fc09994c
@ -8,6 +8,9 @@ require_once __DIR__ . '/../../../TestInit.php';
|
|||||||
|
|
||||||
class DDC742Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
class DDC742Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
||||||
{
|
{
|
||||||
|
private $userCm;
|
||||||
|
private $commentCm;
|
||||||
|
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
@ -15,6 +18,7 @@ class DDC742Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
|||||||
if (\extension_loaded('memcache')) {
|
if (\extension_loaded('memcache')) {
|
||||||
$memcache = new \Memcache();
|
$memcache = new \Memcache();
|
||||||
$memcache->addServer('localhost');
|
$memcache->addServer('localhost');
|
||||||
|
$memcache->flush();
|
||||||
|
|
||||||
$cacheDriver = new \Doctrine\Common\Cache\MemcacheCache();
|
$cacheDriver = new \Doctrine\Common\Cache\MemcacheCache();
|
||||||
$cacheDriver->setMemcache($memcache);
|
$cacheDriver->setMemcache($memcache);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user