public function testConstructorWithNoSoapData() { $dom = $this->_message->getDom(); $this->assertInstanceOf('DomDocument', $dom); $this->assertSame($dom->documentElement->localName, 'Envelope'); $nodeList = $dom->documentElement->childNodes; $this->assertSame(2, $nodeList->length); $this->assertSame('Header', $nodeList->item(0)->localName); $this->assertSame('Body', $nodeList->item(1)->localName); }
public function testFromString() { $this->_message->fromString($this->_getSoapData()); $dom = $this->_message->getDom(); $this->assertInstanceOf('DomDocument', $dom); }