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
|
||||
{
|
||||
private $userCm;
|
||||
private $commentCm;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
@ -15,6 +18,7 @@ class DDC742Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
||||
if (\extension_loaded('memcache')) {
|
||||
$memcache = new \Memcache();
|
||||
$memcache->addServer('localhost');
|
||||
$memcache->flush();
|
||||
|
||||
$cacheDriver = new \Doctrine\Common\Cache\MemcacheCache();
|
||||
$cacheDriver->setMemcache($memcache);
|
||||
@ -123,4 +127,4 @@ class DDC742Comment
|
||||
* @var string
|
||||
*/
|
||||
public $content;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user