2009-07-15 02:36:09 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\Common\Cache;
|
|
|
|
|
|
|
|
use Doctrine\Common\Cache\XcacheCache;
|
|
|
|
|
|
|
|
require_once __DIR__ . '/../../TestInit.php';
|
|
|
|
|
2010-01-29 04:38:37 +03:00
|
|
|
class XcacheCacheTest extends CacheTest
|
2009-07-15 02:36:09 +04:00
|
|
|
{
|
|
|
|
public function setUp()
|
|
|
|
{
|
|
|
|
if ( ! extension_loaded('xcache')) {
|
|
|
|
$this->markTestSkipped('The ' . __CLASS__ .' requires the use of xcache');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-01-29 04:38:37 +03:00
|
|
|
protected function _getCacheDriver()
|
2009-07-15 02:36:09 +04:00
|
|
|
{
|
2010-01-29 04:38:37 +03:00
|
|
|
return new XcacheCache();
|
2009-07-15 02:36:09 +04:00
|
|
|
}
|
|
|
|
}
|