X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fcontent%2FWikitextContentTest.php;h=d0996e3cfc91e530d0f4e93db1425583f9cd1e40;hp=4c69d871b99e58e32bf2d9a2b212b6ecf449114e;hb=e7720b8f8e09287384ddee271641d1b1721318bb;hpb=f9d7d3b8561dab3ddfd8798a77a5b72e03ac8c2b diff --git a/tests/phpunit/includes/content/WikitextContentTest.php b/tests/phpunit/includes/content/WikitextContentTest.php index 4c69d871b9..d0996e3cfc 100644 --- a/tests/phpunit/includes/content/WikitextContentTest.php +++ b/tests/phpunit/includes/content/WikitextContentTest.php @@ -29,7 +29,7 @@ more stuff "WikitextContentTest_testGetParserOutput", CONTENT_MODEL_WIKITEXT, "hello ''world''\n", - "

hello world\n

" + "

hello world\n

\n\n\n
" ], // TODO: more...? ]; @@ -103,16 +103,16 @@ more stuff public static function dataGetSection() { return [ - [ WikitextContentTest::$sections, + [ self::$sections, "0", "Intro" ], - [ WikitextContentTest::$sections, + [ self::$sections, "2", "== test == just a test" ], - [ WikitextContentTest::$sections, + [ self::$sections, "8", false ], @@ -138,38 +138,38 @@ just a test" public static function dataReplaceSection() { return [ - [ WikitextContentTest::$sections, + [ self::$sections, "0", "No more", null, - trim( preg_replace( '/^Intro/sm', 'No more', WikitextContentTest::$sections ) ) + trim( preg_replace( '/^Intro/sm', 'No more', self::$sections ) ) ], - [ WikitextContentTest::$sections, + [ self::$sections, "", "No more", null, "No more" ], - [ WikitextContentTest::$sections, + [ self::$sections, "2", "== TEST ==\nmore fun", null, trim( preg_replace( '/^== test ==.*== foo ==/sm', "== TEST ==\nmore fun\n\n== foo ==", - WikitextContentTest::$sections + self::$sections ) ) ], - [ WikitextContentTest::$sections, + [ self::$sections, "8", "No more", null, - WikitextContentTest::$sections + self::$sections ], - [ WikitextContentTest::$sections, + [ self::$sections, "new", "No more", "New", - trim( WikitextContentTest::$sections ) . "\n\n\n== New ==\n\nNo more" + trim( self::$sections ) . "\n\n\n== New ==\n\nNo more" ], ]; }