spec\Prophecy\Prophecy\RevealerSpec::it_reveals_instances_of_ProphecyInterface_inside_array PHP Method

it_reveals_instances_of_ProphecyInterface_inside_array() public method

public it_reveals_instances_of_ProphecyInterface_inside_array ( Prophecy\Prophecy\ProphecyInterface $prophecy1, Prophecy\Prophecy\ProphecyInterface $prophecy2, stdClass $object1, stdClass $object2 )
$prophecy1 Prophecy\Prophecy\ProphecyInterface
$prophecy2 Prophecy\Prophecy\ProphecyInterface
$object1 stdClass
$object2 stdClass
    function it_reveals_instances_of_ProphecyInterface_inside_array(ProphecyInterface $prophecy1, ProphecyInterface $prophecy2, \stdClass $object1, \stdClass $object2)
    {
        $prophecy1->reveal()->willReturn($object1);
        $prophecy2->reveal()->willReturn($object2);
        $this->reveal(array(array('item' => $prophecy2), $prophecy1))->shouldReturn(array(array('item' => $object2), $object1));
    }