PHPSpec2\Mocker\MockeryMocker::willThrow PHP Method

willThrow() public method

public willThrow ( $expectation, $exception, $message = '' )
    public function willThrow($expectation, $exception, $message = '')
    {
        $expectation->andThrow($exception, $message);
    }