Exemplo n.º 1
0
 function testUsingSameComplexTypeTwiceLeadsToReuseOfDefinition()
 {
     $wsdl = new Wsdl('MyService', 'http://localhost/MyService.php');
     $wsdl->addComplexType('\\ZendTest\\Soap\\TestAsset\\WsdlTestClass');
     $this->assertEquals(array('\\ZendTest\\Soap\\TestAsset\\WsdlTestClass' => 'tns:ZendTest.Soap.TestAsset.WsdlTestClass'), $wsdl->getTypes());
     $wsdl->addComplexType('\\ZendTest\\Soap\\TestAsset\\WsdlTestClass');
     $this->assertEquals(array('\\ZendTest\\Soap\\TestAsset\\WsdlTestClass' => 'tns:ZendTest.Soap.TestAsset.WsdlTestClass'), $wsdl->getTypes());
 }