Пример #1
0
 /**
  *
  */
 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));
 }
Пример #2
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testGetFormatedXmlInvalidXmlAsDomDocument()
 {
     Utils::getFormatedXml('<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:img="http://ws.estesexpress.com/imageview" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://ws.estesexpress.com/imageview" xml:lang="en"><root>', true);
 }