function test_should_throw_exception_if_rendering_and_redirecting() { $controller = new Trails_Controller(NULL); $this->expectException('Trails_DoubleRenderError'); $controller->render_nothing(); $controller->redirect(''); }