/** * */ public function testGetLastResponseAsString() { $soapClient = new SoapClient(array(SoapClient::WSDL_URL => __DIR__ . '/resources/bingsearch.wsdl', SoapClient::WSDL_CLASSMAP => self::classMap())); $this->assertSame(Utils::getFormatedXml(file_get_contents(__DIR__ . '/resources/oneline.xml')), $soapClient->getLastResponse(false)); }
/** * @expectedException \InvalidArgumentException */ public function testGetDOMDocumentException() { $this->assertInstanceOf('\\DOMDocument', Utils::getDOMDocument('')); }