File: ZendDataCacheTest.php

package info (click to toggle)
php-doctrine-cache 1.3.1-1%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 332 kB
  • ctags: 477
  • sloc: php: 1,572; xml: 127; makefile: 13; sh: 5
file content (28 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

namespace Doctrine\Tests\Common\Cache;

use Doctrine\Common\Cache\ZendDataCache;

class ZendDataCacheTest extends CacheTest
{
    public function setUp()
    {
        if (!function_exists('zend_shm_cache_fetch') || (php_sapi_name() != 'apache2handler')) {
            $this->markTestSkipped('The ' . __CLASS__ .' requires the use of Zend Data Cache which only works in apache2handler SAPI');
        }
    }

    public function testGetStats()
    {
        $cache = $this->_getCacheDriver();
        $stats = $cache->getStats();

        $this->assertNull($stats);
    }

    protected function _getCacheDriver()
    {
        return new ZendDataCache();
    }
}