s
$text = trim( preg_replace( '#?p>#', '', $text ) );
// Windows, we love you!
$text = str_replace( "\r", '', $text );
$this->assertEquals( $expected, $text, $msg );
}
public static function provideTestWrapping() {
$testMathML = <<<'MathML'
MathML;
$testMathML = Sanitizer::normalizeCharReferences( $testMathML );
return [
[
'foo',
'foo',
' should survive tidy'
],
[
'foo',
'foo',
' should survive tidy'
],
[ 'foo', 'foo', ' should survive tidy' ],
[ "foo", 'foo', ' should survive tidy' ],
[ "foo", 'foo', ' should survive tidy' ],
[ $testMathML, $testMathML, '