8 protected function setUp() {
11 $this->markTestSkipped(
'Tidy not found' );
21 $text = trim( preg_replace(
'#</?p>#',
'', $text ) );
23 $text = str_replace(
"\r",
'', $text );
24 $this->assertEquals( $expected, $text, $msg );
28 $testMathML = <<<
'MathML'
29<math xmlns=
"http://www.w3.org/1998/Math/MathML">
32 <mo>⁢</mo>
39 <mo>⁢ </mo>
48 '<mw:editsection page="foo" section="bar">foo</mw:editsection>',
49 '<mw:editsection page="foo" section="bar">foo</mw:editsection>',
50 '<mw:editsection> should survive tidy'
53 '<editsection page="foo" section="bar">foo</editsection>',
54 '<editsection page="foo" section="bar">foo</editsection>',
55 '<editsection> should survive tidy'
57 [
'<mw:toc>foo</mw:toc>',
'<mw:toc>foo</mw:toc>',
'<mw:toc> should survive tidy' ],
58 [
"<link foo=\"bar\" />foo",
'<link foo="bar"/>foo',
'<link> should survive tidy' ],
59 [
"<meta foo=\"bar\" />foo",
'<meta foo="bar"/>foo',
'<meta> should survive tidy' ],
60 [ $testMathML, $testMathML,
'<math> should survive tidy' ],
type show c for details The hypothetical commands show w and show c should show the appropriate parts of the General Public License Of the commands you use may be called something other than show w and show c
static tidy( $text)
Interface with html tidy.
static provideTestWrapping()
testTidyWrapping( $expected, $text, $msg='')
provideTestWrapping