Вход Регистрация
Файл: src/vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/ZendDataCacheTest.php
Строк: 27
<?php

namespace DoctrineTestsCommonCache;

use 
DoctrineCommonCacheZendDataCache;

/**
 * @requires function zend_shm_cache_fetch
 */
class ZendDataCacheTest extends CacheTest
{
    protected function 
setUp()
    {
        if (
'apache2handler' !== php_sapi_name()) {
            
$this->markTestSkipped('Zend Data Cache only works in apache2handler SAPI.');
        }
    }

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

        
$this->assertNull($stats);
    }

    protected function 
_getCacheDriver()
    {
        return new 
ZendDataCache();
    }
}
Онлайн: 1
Реклама