3 namespace Doctrine\Tests\Common\Cache;
5 use Doctrine\Common\Cache\ZendDataCache;
7 class ZendDataCacheTest extends CacheTest
9 public function setUp()
11 if (!function_exists('zend_shm_cache_fetch') || (php_sapi_name() != 'apache2handler')) {
12 $this->markTestSkipped('The ' . __CLASS__ .' requires the use of Zend Data Cache which only works in apache2handler SAPI');
16 public function testGetStats()
18 $cache = $this->_getCacheDriver();
19 $stats = $cache->getStats();
21 $this->assertNull($stats);
24 protected function _getCacheDriver()
26 return new ZendDataCache();