spec\Prophecy\Doubler\ClassPatch\ReflectionClassNewInstancePatchSpec::it_supports_ReflectionClass_only PHP Method

it_supports_ReflectionClass_only() public method

public it_supports_ReflectionClass_only ( Prophecy\Doubler\Generator\Node\ClassNode $reflectionClassNode, Prophecy\Doubler\Generator\Node\ClassNode $anotherClassNode )
$reflectionClassNode Prophecy\Doubler\Generator\Node\ClassNode
$anotherClassNode Prophecy\Doubler\Generator\Node\ClassNode
    function it_supports_ReflectionClass_only(ClassNode $reflectionClassNode, ClassNode $anotherClassNode)
    {
        $reflectionClassNode->getParentClass()->willReturn('ReflectionClass');
        $anotherClassNode->getParentClass()->willReturn('stdClass');
        $this->supports($reflectionClassNode)->shouldReturn(true);
        $this->supports($anotherClassNode)->shouldReturn(false);
    }