ZendDataCacheTest.php 671 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Doctrine\Tests\Common\Cache;
  3. use Doctrine\Common\Cache\ZendDataCache;
  4. class ZendDataCacheTest extends CacheTest
  5. {
  6. public function setUp()
  7. {
  8. if (!function_exists('zend_shm_cache_fetch') || (php_sapi_name() != 'apache2handler')) {
  9. $this->markTestSkipped('The ' . __CLASS__ .' requires the use of Zend Data Cache which only works in apache2handler SAPI');
  10. }
  11. }
  12. public function testGetStats()
  13. {
  14. $cache = $this->_getCacheDriver();
  15. $stats = $cache->getStats();
  16. $this->assertNull($stats);
  17. }
  18. protected function _getCacheDriver()
  19. {
  20. return new ZendDataCache();
  21. }
  22. }