Fix build

This commit is contained in:
Romain Neutron
2012-03-21 11:56:06 +01:00
parent 183eb30489
commit cd74713c99
5 changed files with 8 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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
{

View File

@@ -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()

View File

@@ -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
{

View File

@@ -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
{