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