spec\Prophecy\Doubler\Generator\Node\ClassNodeSpec::its_hasMethod_returns_false_if_method_has_been_removed PHP Méthode

its_hasMethod_returns_false_if_method_has_been_removed() public méthode

public its_hasMethod_returns_false_if_method_has_been_removed ( Prophecy\Doubler\Generator\Node\MethodNode $method )
$method Prophecy\Doubler\Generator\Node\MethodNode
    function its_hasMethod_returns_false_if_method_has_been_removed(MethodNode $method)
    {
        $method->getName()->willReturn('getName');
        $this->addMethod($method);
        $this->removeMethod('getName');
        $this->hasMethod('getName')->shouldReturn(false);
    }