function ProphecySubjectPatchSpec::it_forces_class_to_implement_ProphecySubjectInterface in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpspec/prophecy/spec/Prophecy/Doubler/ClassPatch/ProphecySubjectPatchSpec.php \spec\Prophecy\Doubler\ClassPatch\ProphecySubjectPatchSpec::it_forces_class_to_implement_ProphecySubjectInterface()
Parameters
\Prophecy\Doubler\Generator\Node\ClassNode $node:
File
- vendor/
phpspec/ prophecy/ spec/ Prophecy/ Doubler/ ClassPatch/ ProphecySubjectPatchSpec.php, line 31
Class
Namespace
spec\Prophecy\Doubler\ClassPatchCode
function it_forces_class_to_implement_ProphecySubjectInterface($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);
}