createXMLDataSet(dirname(__FILE__) . '/fixtures/config.xml'); } static public function setUpBeforeClass() { if (!extension_loaded('apc')) { self::markTestSkipped('APC extension is not loaded'); } $php_ini = new phpbb_php_ini; if (!$php_ini->get_bool('apc.enabled')) { self::markTestSkipped('APC is not enabled. Make sure apc.enabled=1 in php.ini'); } if (PHP_SAPI == 'cli' && !$php_ini->get_bool('apc.enable_cli')) { self::markTestSkipped('APC is not enabled for CLI. Set apc.enable_cli=1 in php.ini'); } } protected function setUp() { parent::setUp(); $this->driver = new phpbb_cache_driver_apc; $this->driver->purge(); } }