phpmock\spy\Invocation::getException PHP Method

getException() public method

Return the exception which was thrown by the spied function.
public getException ( ) : Exception | null
return Exception | null function's exception or null if none was thrown
    public function getException()
    {
        return $this->exception;
    }