\duncan3dc\MockCoreFunction

Summary

Methods
Properties
Constants
mock()
call()
close()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$mocks
N/A

Properties

Methods

mock()

mock(string  $function) : \duncan3dc\Mock\MockedFunction

Set up a core function to be mocked.

Parameters

string $function

The name of the function to be mocked

Returns

\duncan3dc\Mock\MockedFunction

call()

call(string  $function, \duncan3dc\Mock\Arguments  $arguments) : mixed

Call the mocked version of a function.

Parameters

string $function

The name of the function to be called

\duncan3dc\Mock\Arguments $arguments

The arguments to be passed to the function

Returns

mixed

close()

close() : void

Finish the mocking, check for any expectations, and restore any mocked functions.