/** * @expectedException \RuntimeException * @expectedExceptionMessage View cannot render `null.php` because the layout does not exist */ public function testRenderLayoutNotFoundException() { $this->app->config('templates.path', './tests/templates'); $this->app->view()->setLayout('null.php'); $this->app->view()->setViewVar('view'); $this->app->render('view.php'); }