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

ZendDataCacheTest::testGetStats()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 7
rs 9.4286
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Doctrine\Tests\Common\Cache;
4
5
use Doctrine\Common\Cache\ZendDataCache;
6
7
/**
8
 * @requires function zend_shm_cache_fetch
9
 */
10
class ZendDataCacheTest extends CacheTest
11
{
12
    protected function setUp()
13
    {
14
        if ('apache2handler' !== php_sapi_name()) {
15
            $this->markTestSkipped('Zend Data Cache only works in apache2handler SAPI.');
16
        }
17
    }
18
19
    public function testGetStats()
20
    {
21
        $cache = $this->_getCacheDriver();
22
        $stats = $cache->getStats();
23
24
        $this->assertNull($stats);
25
    }
26
27
    protected function _getCacheDriver()
28
    {
29
        return new ZendDataCache();
30
    }
31
}