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

ApcuCacheTest   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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 6 2
A _getCacheDriver() 0 4 1
A testLifetime() 0 4 1
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