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