ZendDataCacheTest.php 634 B

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