XcacheCacheTest.php 400B

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