This package is abandoned and no longer maintained. No replacement package was suggested.

Mockery Callable Mock

v1.0.0 2014-01-31 15:24 UTC

This package is not auto-updated.

Last update: 2018-08-08 15:27:19 UTC



use Akamon\MockeryCallableMock\MockeryCallableMock;

// creating a mockery function/callable
$mock = new MockeryCallableMock();

// call it normally
$mock('foo', 'bar');
call_user_func($mock, 'foo', 'bar');

// add it expectations
$mock->shouldBeCalled(); // returns a mockery expectation, so you can use it normally



// returned values
$retval = $mock();

// creating stubs
$stub = new MockeryCallableMock();



Pablo Díez - pablodip@gmail.com


Akamon Mockery Callable Mock is licensed under the MIT License. See the LICENSE file for full details.