Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKate Butler <kate@innocraft.com>2019-10-23 01:12:25 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2019-10-23 01:12:25 +0300
commit6869ffc7e74db876fb7c5c3e6a0637880d195749 (patch)
treed6062d893a2c312c4fc79f04dc66ecdf9328b816 /tests/PHPUnit
parenta73d1d3175e7aa39ebfcf5a9af585ff047ec1b14 (diff)
Fix build failures (#15016)
Diffstat (limited to 'tests/PHPUnit')
-rw-r--r--tests/PHPUnit/Framework/TestRequest/Response.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/PHPUnit/Framework/TestRequest/Response.php b/tests/PHPUnit/Framework/TestRequest/Response.php
index b2aa455426..24ddae506d 100644
--- a/tests/PHPUnit/Framework/TestRequest/Response.php
+++ b/tests/PHPUnit/Framework/TestRequest/Response.php
@@ -72,6 +72,9 @@ class Response
$expectedText = $expected->getResponseText();
$actualText = $actual->getResponseText();
+ $expectedText = preg_replace('/[^\x09-\x0d\x1b\x20-\xff]/', '', $expectedText);
+ $actualText = preg_replace('/[^\x09-\x0d\x1b\x20-\xff]/', '', $actualText);
+
if ($expected->requestUrl['format'] == 'xml') {
Asserts::assertXmlStringEqualsXmlString($expectedText, $actualText, $message);
return;