Пример #1
0
 function testTemplateWithCustomExtension()
 {
     $this->view->set('name', 'Bob');
     $this->view->extension = '.html';
     $this->view->render('world');
     $this->expectOutputString('Hello world, Bob!');
 }
Пример #2
0
 function testRender()
 {
     $this->view->render('hello', array('name' => 'Bob'));
     $this->expectOutputString('Hello, Bob!');
 }