Fix MathML test on older PHP versions

pull/321/merge
Aleksander Machniak 8 years ago
parent edfd9da42a
commit bf5b3072c4

@ -316,6 +316,10 @@ class Framework_Washtml extends PHPUnit_Framework_TestCase
$washer = new rcube_washtml; $washer = new rcube_washtml;
$washed = $washer->wash($mathml); $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"); $this->assertSame(trim($washed), trim($exp), "MathML content");
} }
} }

Loading…
Cancel
Save