diff --git a/tests/PHPUnit/Impl/TestRequestResponse.php b/tests/PHPUnit/Impl/TestRequestResponse.php index d1f37112156f5cd51e47976b813d8c38db6a25e8..948b122ec80c27eb35b58bfff0d3ee8088686507 100644 --- a/tests/PHPUnit/Impl/TestRequestResponse.php +++ b/tests/PHPUnit/Impl/TestRequestResponse.php @@ -108,7 +108,7 @@ class TestRequestResponse $apiResponse = $this->removeXmlFields($apiResponse); $apiResponse = $this->normalizeDecimalFields($apiResponse); $apiResponse = $this->normalizeEncodingPhp533($apiResponse); - $apiResponse = $this->normaliseSpaces($apiResponse); + $apiResponse = $this->normalizeSpaces($apiResponse); return $apiResponse; } @@ -247,13 +247,13 @@ class TestRequestResponse return $response; } - private function normaliseSpaces($apiResponse) + private function normalizeSpaces($apiResponse) { if (strpos($this->requestUrl['format'], 'json') === 0) { $apiResponse = str_replace(' ', '\u00a0', $apiResponse); } - if (strpos($this->requestUrl['format'], 'xml') === 0) { - $apiResponse = str_replace(' ', 'Â ', $apiResponse); + if ($this->requestUrl['format'] === 'xml') { + $apiResponse = str_replace(' ', '', $apiResponse); } return $apiResponse; }