コード例 #1
0
ファイル: WsdlTest.php プロジェクト: heiglandreas/zf2
 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());
 }