Overview

Namespaces

  • phpmock
    • environment
    • functions
    • spy

Classes

  • Invocation
  • Spy
  • Overview
  • Namespace
  • Class

Class Invocation

A function call with its arguments and result.

Namespace: phpmock\spy
License: WTFPL
Author: Markus Malkusch markus@malkusch.de
Link: Donations
Located at spy/Invocation.php
Methods summary
public array
# getArguments( )

Returns the arguments of a function call.

Returns the arguments of a function call.

Returns

array
The arguments.
public mixed
# getReturn( )

Returns the return value of a function call.

Returns the return value of a function call.

Returns

mixed
The return value.
public boolean
# isExceptionThrown( )

Returns if the spied function threw an exception.

Returns if the spied function threw an exception.

Returns

boolean
TRUE if an exception was thrown.
public Exception|null
# getException( )

Return the exception which was thrown by the spied function.

Return the exception which was thrown by the spied function.

Returns

Exception|null
function's exception or null if none was thrown
API documentation generated by ApiGen