/**
  *
  */
 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));
 }
Beispiel #2
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testGetDOMDocumentException()
 {
     $this->assertInstanceOf('\\DOMDocument', Utils::getDOMDocument(''));
 }