spec\PHPSpec2\Matcher\ThrowMatcher::it_can_specify_a_method_during_which_an_exception_should_be_throw PHP Метод

it_can_specify_a_method_during_which_an_exception_should_be_throw() публичный Метод

public it_can_specify_a_method_during_which_an_exception_should_be_throw ( Prophet $subject )
$subject Prophet mock of stdClass
    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());
    }