/** * In this case, the result is generated directly by the caching engine, so * the original template should not be displayed. */ public function testCacheProvidedAndUsed() { $view = new Opt_View('sample.tpl'); $view->setCache(new activeCache()); $output = new Opt_Output_Return(); $this->assertEquals('CACHE-CHECK-START', $this->stripWs($output->render($view))); }