public function testCleanCache() { $this->assertFileNotExists(self::$_classFileIncCache); Centurion_Loader_PluginLoader::shutdown(); $this->assertFileExists(self::$_classFileIncCache); Centurion_Loader_PluginLoader::clean(); $this->assertFileNotExists(self::$_classFileIncCache); Centurion_Loader_PluginLoader::shutdown(); $this->assertFileExists(self::$_classFileIncCache); }
public function testCleanCache() { $this->assertFileNotExists(self::$_classFileIncCache); Centurion_Loader_PluginLoader::setCacheRotate(0); Centurion_Loader_PluginLoader::shutdown(); $this->assertFileExists(self::$_classFileIncCache); Centurion_Loader_PluginLoader::clean(); $this->assertEquals(file_get_contents(self::$_classFileIncCache), ''); Centurion_Loader_PluginLoader::shutdown(); $this->assertFileExists(self::$_classFileIncCache); }