Added phing for running tests & fixed issues in order to pass the tests
This commit is contained in:
@ -9,7 +9,15 @@ class SoapFaultParserTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testParse()
|
||||
{
|
||||
$soapFaultXml = '<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>911</faultcode><faultstring>This is a dummy SoapFault.</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>';
|
||||
$soapFaultXml = '<?xml version="1.0" encoding="UTF-8"?>'.
|
||||
'<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">'.
|
||||
'<SOAP-ENV:Body>'.
|
||||
'<SOAP-ENV:Fault>'.
|
||||
'<faultcode>911</faultcode>'.
|
||||
'<faultstring>This is a dummy SoapFault.</faultstring>'.
|
||||
'</SOAP-ENV:Fault>'.
|
||||
'</SOAP-ENV:Body>'.
|
||||
'</SOAP-ENV:Envelope>';
|
||||
$soapFault = SoapFaultParser::parseSoapFault($soapFaultXml);
|
||||
|
||||
self::assertInstanceOf(SoapFault::class, $soapFault);
|
||||
|
Reference in New Issue
Block a user