getMethod() public method

Returns the method by its original name
public getMethod ( string $methodName ) : Method | null
$methodName string the original method name
return Method | null
示例#1
0
 /**
  *
  */
 public function testNameIsCleanWithMultipleInt()
 {
     Service::purgeUniqueNames();
     $service1 = new Service(self::getBingGeneratorInstance(), 'Login');
     $service1->addMethod('0123456789MyOperation', 'int', 'id');
     $this->assertFalse($service1->getMethod('0123456789MyOperation')->nameIsClean());
 }
示例#2
0
 public function testGetReservedMethodsInstance()
 {
     $service = new Service(self::getBingGeneratorInstance(), 'Foo');
     $service->addMethod('getId', 'string', 'string');
     $this->assertInstanceOf('\\WsdlToPhp\\PackageGenerator\\ConfigurationReader\\ServiceReservedMethod', $service->getMethod('getId')->getReservedMethodsInstance());
 }