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

ApcCacheTest::_getCacheDriver()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Doctrine\Tests\Common\Cache;
4
5
use Doctrine\Common\Cache\ApcCache;
6
7
/**
8
 * @requires extension apc
9
 */
10
class ApcCacheTest 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 ApcCache();
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