Closed
Description
There doesn't seem to be able simple way to set up expectations for multiple function calls.
I've ended up doing this as a workaround, but its ugly:
$mockFetchBody = PHPMockery::mock("Namespace", "imap_fetchbody");
$mockFetchBody
->with('someparams')
->andReturn('response');
$mockFetchBody
->getMock()
->shouldReceive(\phpmock\integration\MockDelegateFunctionBuilder::METHOD)
->with('nextparams')
->andReturn('response2');
Metadata
Metadata
Assignees
Labels
No labels