/** * */ public function testRenderWithLayout() { $view = new View($this->viewPath); $view->setLayout($this->layoutPath); $view->set('msg', 'hello world!'); // $result = $view->render(); // $parts = explode('hello world!', $result); $this->assertEquals(3, sizeof($parts)); $this->assertRegExp('#view footer#msi', $result); $this->assertRegExp('#layout footer#msi', $result); }