public it_constructs_new_prophecy_with_parent_class_if_specified ( $doubler, Prophecy\Prophecy\ProphecySubjectInterface $newDouble ) | ||
$newDouble | Prophecy\Prophecy\ProphecySubjectInterface |
function it_constructs_new_prophecy_with_parent_class_if_specified($doubler, ProphecySubjectInterface $newDouble)
{
$doubler->double(Argument::any(), array())->willReturn($newDouble);
$this->prophesize('Prophecy\\Prophet')->reveal()->shouldReturn($newDouble);
}