function its_hasMethod_returns_true_if_method_exists(MethodNode $method) { $method->getName()->willReturn('getName'); $this->addMethod($method); $this->hasMethod('getName')->shouldReturn(true); }