mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Fix build
This commit is contained in:
@@ -16,6 +16,10 @@ class ApcCacheTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
|
if (extension_loaded('apc'))
|
||||||
|
{
|
||||||
|
$this->markTestSkipped('Apc is not installed');
|
||||||
|
}
|
||||||
$this->object = new \Alchemy\Phrasea\Cache\ApcCache;
|
$this->object = new \Alchemy\Phrasea\Cache\ApcCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -29,7 +29,7 @@ class ServiceApcCacheTest extends PhraseanetPHPUnitAbstract
|
|||||||
if (extension_loaded('apc'))
|
if (extension_loaded('apc'))
|
||||||
{
|
{
|
||||||
$service = $cache->getDriver();
|
$service = $cache->getDriver();
|
||||||
$this->assertTrue($service instanceof \Doctrine\Common\Cache\AbstractCache);
|
$this->assertTrue($service instanceof \Doctrine\Common\Cache\CacheProvider);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -27,7 +27,7 @@ class ServiceArrayCacheTest extends PhraseanetPHPUnitAbstract
|
|||||||
);
|
);
|
||||||
|
|
||||||
$service = $cache->getDriver();
|
$service = $cache->getDriver();
|
||||||
$this->assertTrue($service instanceof \Doctrine\Common\Cache\AbstractCache);
|
$this->assertTrue($service instanceof \Doctrine\Common\Cache\CacheProvider);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testServiceException()
|
public function testServiceException()
|
||||||
|
@@ -29,7 +29,7 @@ class ServiceMemcacheCacheTest extends PhraseanetPHPUnitAbstract
|
|||||||
if (extension_loaded('memcache'))
|
if (extension_loaded('memcache'))
|
||||||
{
|
{
|
||||||
$service = $cache->getDriver();
|
$service = $cache->getDriver();
|
||||||
$this->assertTrue($service instanceof \Doctrine\Common\Cache\AbstractCache);
|
$this->assertTrue($service instanceof \Doctrine\Common\Cache\CacheProvider);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -29,7 +29,7 @@ class ServiceXcacheCacheTest extends PhraseanetPHPUnitAbstract
|
|||||||
if (extension_loaded('xcache'))
|
if (extension_loaded('xcache'))
|
||||||
{
|
{
|
||||||
$service = $cache->getDriver();
|
$service = $cache->getDriver();
|
||||||
$this->assertTrue($service instanceof \Doctrine\Common\Cache\AbstractCache);
|
$this->assertTrue($service instanceof \Doctrine\Common\Cache\CacheProvider);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user