示例#1
0
 function testGetComplexTypeBasedOnStrategiesStringNames()
 {
     $wsdl = new WSDL\WSDL('MyService', 'http://localhost/MyService.php', 'Zend_Soap_WSDL_Strategy_DefaultComplexType');
     $this->assertEquals('tns:Zend_Soap_WSDL_Test', $wsdl->getType('Zend_Soap_WSDL_Test'));
     $this->assertTrue($wsdl->getComplexTypeStrategy() instanceof Strategy\DefaultComplexType);
     $wsdl2 = new WSDL\WSDL('MyService', 'http://localhost/MyService.php', 'Zend_Soap_WSDL_Strategy_AnyType');
     $this->assertEquals('xsd:anyType', $wsdl2->getType('Zend_Soap_WSDL_Test'));
     $this->assertTrue($wsdl2->getComplexTypeStrategy() instanceof Strategy\AnyType);
 }