spec\Prophecy\ProphetSpec::it_constructs_new_prophecy_with_interface_if_specified PHP Метод

it_constructs_new_prophecy_with_interface_if_specified() публичный Метод

public it_constructs_new_prophecy_with_interface_if_specified ( $doubler, Prophecy\Prophecy\ProphecySubjectInterface $newDouble )
$newDouble Prophecy\Prophecy\ProphecySubjectInterface
    function it_constructs_new_prophecy_with_interface_if_specified($doubler, ProphecySubjectInterface $newDouble)
    {
        $doubler->double(null, Argument::any())->willReturn($newDouble);
        $this->prophesize('ArrayAccess')->reveal()->shouldReturn($newDouble);
    }