Method | Description | |
---|---|---|
__construct ( array $arguments, mixed $return, Exception $exception = null ) | Sets the arguments and return value | |
getArguments ( ) : array | Returns the arguments of a function call. | |
getException ( ) : Exception | null | Return the exception which was thrown by the spied function. | |
getReturn ( ) : mixed | Returns the return value of a function call. | |
isExceptionThrown ( ) : boolean | Returns if the spied function threw an exception. |
public __construct ( array $arguments, mixed $return, Exception $exception = null ) | ||
$arguments | array | Function's arguments |
$return | mixed | Function's return value |
$exception | Exception | The exception thrown by the function |
public getArguments ( ) : array | ||
return | array | The arguments. |
public getException ( ) : Exception | null | ||
return | Exception | null | function's exception or null if none was thrown |
public isExceptionThrown ( ) : boolean | ||
return | boolean | TRUE if an exception was thrown. |