public it_consequently_returns_multiple_values_it_was_constructed_with ( Prophecy\Prophecy\ObjectProphecy $object, Prophecy\Prophecy\MethodProphecy $method ) | ||
$object | Prophecy\Prophecy\ObjectProphecy | |
$method | Prophecy\Prophecy\MethodProphecy |
function it_consequently_returns_multiple_values_it_was_constructed_with(ObjectProphecy $object, MethodProphecy $method)
{
$this->beConstructedWith(array(42, 24, 12));
$this->execute(array(), $object, $method)->shouldReturn(42);
$this->execute(array(), $object, $method)->shouldReturn(24);
$this->execute(array(), $object, $method)->shouldReturn(12);
}