9 protected function setUp() {
12 $this->markTestSkipped(
'Tidy not found' );
22 $text = trim( preg_replace(
'#</?p>#',
'', $text ) );
24 $text = str_replace(
"\r",
'', $text );
25 $this->assertEquals( $expected, $text, $msg );
29 $testMathML = <<<
'MathML'
30 <math xmlns=
"http://www.w3.org/1998/Math/MathML">
33 <mo>⁢</mo>
40 <mo>⁢ </mo>
49 '<mw:editsection page="foo" section="bar">foo</mw:editsection>',
50 '<mw:editsection page="foo" section="bar">foo</mw:editsection>',
51 '<mw:editsection> should survive tidy'
54 '<editsection page="foo" section="bar">foo</editsection>',
55 '<editsection page="foo" section="bar">foo</editsection>',
56 '<editsection> should survive tidy'
58 [
'<mw:toc>foo</mw:toc>',
'<mw:toc>foo</mw:toc>',
'<mw:toc> should survive tidy' ],
59 [
"<link foo=\"bar\" />foo",
'<link foo="bar"/>foo',
'<link> should survive tidy' ],
60 [
"<meta foo=\"bar\" />foo",
'<meta foo="bar"/>foo',
'<meta> should survive tidy' ],
61 [ $testMathML, $testMathML,
'<math> should survive tidy' ],