Completed
Push — master ( a8b991...dda2b8 )
by Marco
06:05 queued 02:56
created

ApcCacheTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 12
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
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\ApcCache;
6
7
/**
8
 * @requires extension apc
9
 */
10
class ApcCacheTest extends CacheTest
11
{
12
    protected function _getCacheDriver()
13
    {
14
        return new ApcCache();
0 ignored issues
show
Deprecated Code introduced by
The class Doctrine\Common\Cache\ApcCache has been deprecated with message: since version 1.6, use ApcuCache instead

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
15
    }
16
17
    public function testLifetime()
18
    {
19
        $this->markTestSkipped('The APC cache TTL is not working in a single process/request. See https://bugs.php.net/bug.php?id=58084');
20
    }
21
}
22