diff options
author | Kate Butler <kate@innocraft.com> | 2019-10-23 01:12:25 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-10-23 01:12:25 +0300 |
commit | 6869ffc7e74db876fb7c5c3e6a0637880d195749 (patch) | |
tree | d6062d893a2c312c4fc79f04dc66ecdf9328b816 /tests/PHPUnit | |
parent | a73d1d3175e7aa39ebfcf5a9af585ff047ec1b14 (diff) |
Fix build failures (#15016)
Diffstat (limited to 'tests/PHPUnit')
-rw-r--r-- | tests/PHPUnit/Framework/TestRequest/Response.php | 3 |
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; |