fix travis tests

This commit is contained in:
Philipp Holzer 2019-04-20 18:11:24 +02:00
parent 3ca8fa0e00
commit e604b3239d
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
5 changed files with 22 additions and 3 deletions

View file

@ -8,6 +8,15 @@ use Friendica\Core\Lock\CacheLockDriver;
class APCuCacheLockDriverTest extends LockTest
{
protected function setUp()
{
if (!APCuCache::isAvailable()) {
$this->markTestSkipped('APCu is not available');
}
parent::setUp();
}
protected function getInstance()
{
return new CacheLockDriver(new APCuCache());