diff --git a/tests/PHPUnit/Impl/TestRequestResponse.php b/tests/PHPUnit/Impl/TestRequestResponse.php index 948b122ec80c27eb35b58bfff0d3ee8088686507..f30c27f39fdb95fdb503f20c9d64880050221954 100644 --- a/tests/PHPUnit/Impl/TestRequestResponse.php +++ b/tests/PHPUnit/Impl/TestRequestResponse.php @@ -252,9 +252,6 @@ class TestRequestResponse if (strpos($this->requestUrl['format'], 'json') === 0) { $apiResponse = str_replace(' ', '\u00a0', $apiResponse); } - if ($this->requestUrl['format'] === 'xml') { - $apiResponse = str_replace(' ', '', $apiResponse); - } return $apiResponse; } } \ No newline at end of file diff --git a/tests/PHPUnit/Integration/PivotByQueryParamTest.php b/tests/PHPUnit/Integration/PivotByQueryParamTest.php index 6d42fe51ba15c6a78e6a80196f9fe0082736d618..4209ce80b65636a32498e2d0d471c7d9cdb65d83 100644 --- a/tests/PHPUnit/Integration/PivotByQueryParamTest.php +++ b/tests/PHPUnit/Integration/PivotByQueryParamTest.php @@ -176,6 +176,14 @@ class PivotByQueryParamTest extends IntegrationTestCase 'pivotByColumnLimit' => -1 )); } + public function assertApiResponseEqualsExpected($apiMethod, $queryParams) + { + if(self::isPhpVersion53()) { + // 5.3.3 space encoding fail eg. https://travis-ci.org/piwik/piwik/jobs/35920420 + $this->markTestSkipped(); + } + $this->assertApiResponseEqualsExpected($apiMethod, $queryParams); + } } PivotByQueryParamTest::$fixture = new ManyVisitsWithMockLocationProvider(); \ No newline at end of file