Enable cache extension in travis build

This commit is contained in:
Romain Neutron
2013-06-01 12:23:27 +02:00
parent 59162e73fb
commit aa64d38c3b
5 changed files with 17 additions and 3 deletions

View File

@@ -13,9 +13,13 @@ class ApcCacheTest extends \PHPUnit_Framework_TestCase
public function setUp()
{
if ( ! extension_loaded('apc') || ! ini_get('apc.enable_cli')) {
if (!extension_loaded('apc')) {
$this->markTestSkipped('Apc is not installed');
}
if (!ini_get('apc.enable_cli')) {
$this->markTestSkipped('Apc is not loaded in CLI');
}
$this->object = new ApcCache;
}

View File

@@ -17,7 +17,7 @@ class RedisTest extends \PhraseanetPHPUnitAbstract
$ok = false;
}
if (! $ok) {
$this->markTestSkipped('The ' . __CLASS__ . ' requires the use of redis');
$this->markTestSkipped('The ' . __CLASS__ . ' cannot connect to redis');
}
} else {
$this->markTestSkipped('The ' . __CLASS__ . ' requires the use of redis');