public function testShouldThrowExceptionForInvalidViewObject() { $exception = null; try { $renderer = new Renderer([], 'foo'); $renderer->render(); } catch (\Exception $e) { $exception = $e; } $this->assertInstanceOf('\\Vegas\\ApiDoc\\Exception\\InvalidViewComponentException', $exception); }