Eloquent\Phony\Stub\StubVerifier::throws PHP Метод

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

Add an answer that throws an exception.
public throws ( Exceptio\Exception | Erro\Error | string | null $exception = null )
$exception Exceptio\Exception | Erro\Error | string | null The exception, or message, or null to throw a generic exception.
    public function throws($exception = null)
    {
        call_user_func_array(array($this->stub, 'throws'), func_get_args());
        return $this;
    }