public function testSetViewCache()
 {
     if (false !== sfConfig::get('sf_cache')) {
         $event = new sfEvent($this, 'controller.change_action', array('module' => 'sfImageTransformator', 'action' => 'index'));
         sfImageTransformExtraPluginConfiguration::setViewCache($event);
         $viewCacheManager = sfContext::getInstance(sfConfig::get('sf_app'))->getViewCacheManager();
         $this->assertType('sfRawFileCache', $viewCacheManager->getCache());
     } else {
         $this->markTestSkipped('sf_cache is false, therefor testing setting of a viewcache must be skipped.');
     }
 }