1
我试图捕捉异常与我的规范,但我不能使它的作品。这是我的代码:如何用phpspec2捕捉异常
$this->edit('updated comment', $comment, $user)
->shouldReturnAnInstanceOf('\Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException');
我在做什么错了?