PHP Класс phpmock\spy\Invocation

Автор: Markus Malkusch ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Описание методов

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

Sets the arguments and return value
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

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

Returns the arguments of a function call.
public getArguments ( ) : array
Результат array The arguments.

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

Return the exception which was thrown by the spied function.
public getException ( ) : Exception | null
Результат Exception | null function's exception or null if none was thrown

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

Returns the return value of a function call.
public getReturn ( ) : mixed
Результат mixed The return value.

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

Returns if the spied function threw an exception.
public isExceptionThrown ( ) : boolean
Результат boolean TRUE if an exception was thrown.