public function setUp() { if (($config = Kohana::config('cache.testing.file')) === NULL) { $this->markTestSkipped('No cache.testing.file config found.'); } Kohana::config_set('cache.testing.file.requests', 1); $this->cache = Cache::instance('testing.file'); parent::setUp(); }
public function setUp() { if (!extension_loaded('sqlite')) { $this->markTestSkipped('The Sqlite extension is not loaded'); } if (($config = Kohana::config('cache.testing.sqlite')) === NULL) { $this->markTestSkipped('No cache.testing.sqlite config found.'); } if (Kohana::config('cache_sqlite') === NULL) { $this->markTestSkipped('No cache_sqlite config found.'); } Kohana_Config::instance()->set('cache.testing.sqlite.requests', 1); $this->cache = Cache::instance('testing.sqlite'); parent::setUp(); }