function testTemplateWithCustomExtension() { $this->view->set('name', 'Bob'); $this->view->extension = '.html'; $this->view->render('world'); $this->expectOutputString('Hello world, Bob!'); }
function testFetch() { $output = $this->view->fetch('hello', array('name' => 'Bob')); $this->assertEquals('Hello, Bob!', $output); }