Completed
Push — master ( 58e23b...b24fc8 )
by Marco
03:02
created

ApcuCacheTest::setUp()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 3
nc 2
nop 0
1
<?php
2
3
namespace Doctrine\Tests\Common\Cache;
4
5
use Doctrine\Common\Cache\ApcuCache;
6
7
/**
8
 * @requires extension apcu
9
 */
10
class ApcuCacheTest extends CacheTest
11
{
12
    protected function setUp()
13
    {
14
        if (!ini_get('apc.enable_cli')) {
15
            $this->markTestSkipped('APC must be enabled for the CLI with the ini setting apc.enable_cli=1');
16
        }
17
    }
18
19
    protected function _getCacheDriver()
20
    {
21
        return new ApcuCache();
22
    }
23
24
    public function testLifetime()
25
    {
26
        $this->markTestSkipped('The APC cache TTL is not working in a single process/request. See https://bugs.php.net/bug.php?id=58084');
27
    }
28
}
29