Passed
Pull Request — master (#251)
by Gabriel
10:21
created

ApcCacheTest   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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