PHP 클래스 phpmock\spy\Invocation

저자: Markus Malkusch ([email protected])
파일 보기 프로젝트 열기: php-mock/php-mock

공개 메소드들

메소드 설명
__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.