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

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2016-07-18 12:19:53 +0300
committerAleksander Machniak <alec@alec.pl>2016-07-18 12:19:53 +0300
commitbf5b3072c401c4bc8f31bbe7acbbcd1177fb7b40 (patch)
tree1f33847599b7f2373de354b4144d08df49ad7018 /tests
parentedfd9da42ab53b035671b256e1b76fd72fb31504 (diff)
Fix MathML test on older PHP versions
Diffstat (limited to 'tests')
-rw-r--r--tests/Framework/Washtml.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Framework/Washtml.php b/tests/Framework/Washtml.php
index 18dfcab54..ee7871d4f 100644
--- a/tests/Framework/Washtml.php
+++ b/tests/Framework/Washtml.php
@@ -316,6 +316,10 @@ class Framework_Washtml extends PHPUnit_Framework_TestCase
$washer = new rcube_washtml;
$washed = $washer->wash($mathml);
+ // remove whitespace between tags
+ $washed = preg_replace('/>[\s\r\n\t]+</', '><', $washed);
+ $exp = preg_replace('/>[\s\r\n\t]+</', '><', $exp);
+
$this->assertSame(trim($washed), trim($exp), "MathML content");
}
}