/** * */ public function testNameIsCleanWithMultipleInt() { Service::purgeUniqueNames(); $service1 = new Service(self::getBingGeneratorInstance(), 'Login'); $service1->addMethod('0123456789MyOperation', 'int', 'id'); $this->assertFalse($service1->getMethod('0123456789MyOperation')->nameIsClean()); }
/** * @param string $serviceVariableName * @param ServiceModel $service * @return Tutorial */ protected function addServiceSoapHeadersDefinitions($serviceVariableName, ServiceModel $service) { $added = array(); foreach ($service->getMethods() as $method) { $added = array_merge($added, $this->addServiceSoapHeadersDefinition($serviceVariableName, $method, $added)); } return $this; }
public function testGetReservedMethodsInstance() { $service = new Service(self::getBingGeneratorInstance(), 'Foo'); $service->addMethod('getId', 'string', 'string'); $this->assertInstanceOf('\\WsdlToPhp\\PackageGenerator\\ConfigurationReader\\ServiceReservedMethod', $service->getMethod('getId')->getReservedMethodsInstance()); }