public function testRenderShouldThrowExceptionWhenLayoutNotFound() { $this->setExpectedException('\\Nano\\Exception', 'View ' . $this->renderer->getLayoutFileName('test2') . ' not exists'); $this->controller->layout = 'test2'; $this->controller->controller = 'test'; $this->controller->template = 'test'; $this->renderer->render($this->controller); }