s $text = trim( preg_replace( '##', '', $text ) ); // Windows, we love you! $text = str_replace( "\r", '', $text ); $this->assertEquals( $expected, $text, $msg ); } public static function provideTestWrapping() { $testMathML = <<<'MathML' a x 2 + b x + c 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, ' should survive tidy' ], ]; } }