Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Nov 27, 2017
1 parent 724a8f4 commit 3a3f95a
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions tests/Api/Proxy/SoapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public function testGet()

$body = (string) $response->getBody();
$body = preg_replace('/<faultstring>(.*)<\/faultstring>/imsU', '<faultstring>[faultstring]</faultstring>', $body);
$body = preg_replace('/<message>(.*)<\/message>/imsU', '<message>[message]</message>', $body);
$body = preg_replace('/<trace>(.*)<\/trace>/imsU', '<trace>[trace]</trace>', $body);
$body = preg_replace('/<context>(.*)<\/context>/imsU', '<context>[context]</context>', $body);
$body = preg_replace('/<message type="string">(.*)<\/message>/imsU', '<message type="string">[message]</message>', $body);
$body = preg_replace('/<trace type="string">(.*)<\/trace>/imsU', '<trace type="string">[trace]</trace>', $body);
$body = preg_replace('/<context type="string">(.*)<\/context>/imsU', '<context type="string">[context]</context>', $body);

$expect = <<<'XML'
<?xml version="1.0" encoding="UTF-8"?>
Expand All @@ -24,12 +24,12 @@ public function testGet()
<faultcode>soap:Server</faultcode>
<faultstring>[faultstring]</faultstring>
<detail>
<error xmlns="http://phpsx.org/2014/data">
<success>false</success>
<title>PSX\Http\Exception\MethodNotAllowedException</title>
<message>[message]</message>
<trace>[trace]</trace>
<context>[context]</context>
<error type="object" xmlns="http://phpsx.org/2014/data">
<success type="boolean">false</success>
<title type="string">PSX\Http\Exception\MethodNotAllowedException</title>
<message type="string">[message]</message>
<trace type="string">[trace]</trace>
<context type="string">[context]</context>
</error>
</detail>
</soap:Fault>
Expand All @@ -50,15 +50,15 @@ public function testPost()
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getResponse xmlns="http://phpsx.org/2014/data">
<id>2</id>
<place>2</place>
<region>United States</region>
<population>307212123</population>
<users>227719000</users>
<worldUsers>13.1</worldUsers>
<datetime>2009-11-29T15:22:40Z</datetime>
</getResponse>
<population type="object" xmlns="http://phpsx.org/2014/data">
<id type="integer">2</id>
<place type="integer">2</place>
<region type="string">United States</region>
<population type="integer">307212123</population>
<users type="integer">227719000</users>
<worldUsers type="float">13.1</worldUsers>
<datetime type="date-time">2009-11-29T15:22:40Z</datetime>
</population>
</soap:Body>
</soap:Envelope>
XML;
Expand Down

0 comments on commit 3a3f95a

Please sign in to comment.