如何从Mockery返回多个值

How to return multiple values from Mockery

I have a function which accepts several arguments by reference:

public function foo(&$a, &$b, &$c , &$d , &$e)

How can I mock this (and set the value of the variables)?

A bit like this:

$object = Mockery::mock('MyClass');

$object->shouldReceive('foo')->once()->with($a,$b,$c,$d,$e);

`