spec\Prophecy\Doubler\ClassPatch\ProphecySubjectPatchSpec::it_forces_class_to_implement_ProphecySubjectInterface PHP Method

it_forces_class_to_implement_ProphecySubjectInterface() public method

public it_forces_class_to_implement_ProphecySubjectInterface ( Prophecy\Doubler\Generator\Node\ClassNode $node )
$node Prophecy\Doubler\Generator\Node\ClassNode
    function it_forces_class_to_implement_ProphecySubjectInterface(ClassNode $node)
    {
        $node->addInterface('Prophecy\\Prophecy\\ProphecySubjectInterface')->shouldBeCalled();
        $node->addProperty('objectProphecy', 'private')->willReturn(null);
        $node->getMethods()->willReturn(array());
        $node->hasMethod(Argument::any())->willReturn(false);
        $node->addMethod(Argument::type('Prophecy\\Doubler\\Generator\\Node\\MethodNode'))->willReturn(null);
        $node->addMethod(Argument::type('Prophecy\\Doubler\\Generator\\Node\\MethodNode'))->willReturn(null);
        $this->apply($node);
    }