function it_can_specify_a_method_during_which_an_exception_should_be_throw($subject) { $subject->someMethod()->willThrow('\\Exception'); $this->positiveMatch('throw', $subject, array('\\Exception'))->duringSomeMethod(array()); }