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); }