ApcCacheTest.php 416 B

1234567891011121314151617181920
  1. <?php
  2. namespace Doctrine\Tests\Common\Cache;
  3. use Doctrine\Common\Cache\ApcCache;
  4. class ApcCacheTest extends CacheTest
  5. {
  6. public function setUp()
  7. {
  8. if ( ! extension_loaded('apc') || false === @apc_cache_info()) {
  9. $this->markTestSkipped('The ' . __CLASS__ .' requires the use of APC');
  10. }
  11. }
  12. protected function _getCacheDriver()
  13. {
  14. return new ApcCache();
  15. }
  16. }