fixed test assertion

This commit is contained in:
Christian Kerl 2010-10-05 23:22:12 +02:00
parent 27da3dcb4a
commit b083a4f512
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ use Bundle\WebServiceBundle\Soap\SoapResponse;
class SoapKernelTest extends \PHPUnit_Framework_TestCase class SoapKernelTest extends \PHPUnit_Framework_TestCase
{ {
private static $soapRequestContent = '<?xml version="1.0"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://localhost/"><soapenv:Header/><soapenv:Body><ns1:math_multiply><a>10</a><b>20</b></ns1:math_multiply></soapenv:Body></soapenv:Envelope>'; private static $soapRequestContent = '<?xml version="1.0"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://localhost/"><soapenv:Header/><soapenv:Body><ns1:math_multiply><a>10</a><b>20</b></ns1:math_multiply></soapenv:Body></soapenv:Envelope>';
private static $soapResponseContent = '<?xml version="1.0"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://localhost/"><soapenv:Header/><soapenv:Body><ns1:math_multiply><result>200</result></ns1:math_multiply></soapenv:Body></soapenv:Envelope>'; private static $soapResponseContent = '<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://localhost/"><SOAP-ENV:Body><ns1:math_multiplyResponse><result>200</result></ns1:math_multiplyResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>';
private $soapKernel; private $soapKernel;
@ -45,7 +45,7 @@ class SoapKernelTest extends \PHPUnit_Framework_TestCase
$response = $this->soapKernel->handle(new SoapRequest(self::$soapRequestContent)); $response = $this->soapKernel->handle(new SoapRequest(self::$soapRequestContent));
$this->assertEquals(200, $response->getReturnValue()); $this->assertEquals(200, $response->getReturnValue());
$this->assertEquals(self::$soapResponseContent, $response->getContent()); $this->assertXmlStringEqualsXmlString(self::$soapResponseContent, $response->getContent());
} }
/** /**