From 83fed18a6ba9f48c1012e96bf1e78358aa4fe2b1 Mon Sep 17 00:00:00 2001
From: mattab <matthieu.aubry@gmail.com>
Date: Mon, 22 Sep 2014 18:45:20 +1200
Subject: [PATCH] Attempting to fix the failing build on php 5.3 and 5.4

---
 tests/PHPUnit/Impl/TestRequestResponse.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/PHPUnit/Impl/TestRequestResponse.php b/tests/PHPUnit/Impl/TestRequestResponse.php
index d1f3711215..948b122ec8 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('&nbsp;', '\u00a0', $apiResponse);
         }
-        if (strpos($this->requestUrl['format'], 'xml') === 0) {
-            $apiResponse = str_replace('&#xA0;', ' ', $apiResponse);
+        if ($this->requestUrl['format'] === 'xml') {
+            $apiResponse = str_replace('&#xA0;', '', $apiResponse);
         }
         return $apiResponse;
     }
-- 
GitLab