Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / common / tests / Doctrine / Tests / Common / Cache / ZendDataCacheTest.php
1 <?php
2
3 namespace Doctrine\Tests\Common\Cache;
4
5 use Doctrine\Common\Cache\ZendDataCache;
6
7 class ZendDataCacheTest extends CacheTest
8 {
9     public function setUp()
10     {
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');
13         }
14     }
15
16     public function testGetStats()
17     {
18         $cache = $this->_getCacheDriver();
19         $stats = $cache->getStats();
20
21         $this->assertNull($stats);
22     }
23
24     protected function _getCacheDriver()
25     {
26         return new ZendDataCache();
27     }
28 }