Ejemplo n.º 1
0
 function testToDomDocument()
 {
     $wsdl = new WSDL\WSDL('MyService', 'http://localhost/MyService.php');
     $dom = $wsdl->toDomDocument();
     $this->assertTrue($dom instanceof \DOMDocument);
     $this->assertEquals($this->sanitizeWSDLXmlOutputForOsCompability($dom->saveXML()), '<?xml version="1.0"?>' . '<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" ' . 'xmlns:tns="http://localhost/MyService.php" ' . 'xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" ' . 'xmlns:xsd="http://www.w3.org/2001/XMLSchema" ' . 'xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" ' . 'xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" ' . 'name="MyService" targetNamespace="http://localhost/MyService.php"/>');
 }