diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2014-04-25 06:26:49 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-04-25 06:26:49 +0200 |
commit | 2e44b49a2db3026050b136de9b00f749dd3ff939 (patch) | |
tree | ef048f4db79a93c25cfc86319264aa7ae2a4ae0b /tests/phpunit/includes/parser/TidyTest.php | |
parent | 9441dde8bfb95277df073717ed7817dced40f948 (diff) |
Update to MediaWiki 1.22.6
Diffstat (limited to 'tests/phpunit/includes/parser/TidyTest.php')
-rw-r--r-- | tests/phpunit/includes/parser/TidyTest.php | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/tests/phpunit/includes/parser/TidyTest.php b/tests/phpunit/includes/parser/TidyTest.php deleted file mode 100644 index 57a88b9d..00000000 --- a/tests/phpunit/includes/parser/TidyTest.php +++ /dev/null @@ -1,44 +0,0 @@ -<?php - -/** - * @group Parser - */ -class TidyTest extends MediaWikiTestCase { - public function setUp() { - parent::setUp(); - $check = MWTidy::tidy( '' ); - if ( strpos( $check, '<!--' ) !== false ) { - $this->markTestSkipped( 'Tidy not found' ); - } - } - - /** - * @dataProvider provideTestWrapping - */ - public function testTidyWrapping( $expected, $text, $msg = '' ) { - $text = MWTidy::tidy( $text ); - // We don't care about where Tidy wants to stick is <p>s - $text = trim( preg_replace( '#</?p>#', '', $text ) ); - // Windows, we love you! - $text = str_replace( "\r", '', $text ); - $this->assertEquals( $expected, $text, $msg ); - } - - public function provideTestWrapping() { - return array( - array( - '<mw:editsection page="foo" section="bar">foo</mw:editsection>', - '<mw:editsection page="foo" section="bar">foo</mw:editsection>', - '<mw:editsection> should survive tidy' - ), - array( - '<editsection page="foo" section="bar">foo</editsection>', - '<editsection page="foo" section="bar">foo</editsection>', - '<editsection> should survive tidy' - ), - array( '<mw:toc>foo</mw:toc>', '<mw:toc>foo</mw:toc>', '<mw:toc> should survive tidy' ), - array( "<link foo=\"bar\" />\nfoo", '<link foo="bar"/>foo', '<link> should survive tidy' ), - array( "<meta foo=\"bar\" />\nfoo", '<meta foo="bar"/>foo', '<meta> should survive tidy' ), - ); - } -}
\ No newline at end of file |