public function provideParse() {
return [
- 'List at start of line' => [
- [ '* List' ],
+ 'List at start of line (content)' => [
+ [ '* List', true, false ],
"<div class=\"mw-parser-output\"><ul><li>List</li></ul>\n</div>",
+ "<ul><li>List</li></ul>\n",
],
- 'List not at start' => [
- [ "* ''Not'' list", false ],
+ 'List at start of line (interface)' => [
+ [ '* List', true, true ],
+ "<ul><li>List</li></ul>\n",
+ ],
+ 'List not at start (content)' => [
+ [ "* ''Not'' list", false, false ],
'<div class="mw-parser-output">* <i>Not</i> list</div>',
+ '* <i>Not</i> list',
+ ],
+ 'List not at start (interface)' => [
+ [ "* ''Not'' list", false, true ],
+ '* <i>Not</i> list',
],
- 'Interface' => [
+ 'Interface message' => [
[ "''Italic''", true, true ],
"<p><i>Italic</i>\n</p>",
'<i>Italic</i>',
],
- 'formatnum' => [
- [ '{{formatnum:123456.789}}' ],
+ 'formatnum (content)' => [
+ [ '{{formatnum:123456.789}}', true, false ],
"<div class=\"mw-parser-output\"><p>123,456.789\n</p></div>",
+ "123,456.789",
+ ],
+ 'formatnum (interface)' => [
+ [ '{{formatnum:123456.789}}', true, true ],
+ "<p>123,456.789\n</p>",
+ "123,456.789",
],
- 'Language' => [
+ 'Language (content)' => [
[ '{{formatnum:123456.789}}', true, false, Language::factory( 'is' ) ],
"<div class=\"mw-parser-output\"><p>123.456,789\n</p></div>",
],
- 'Language with interface' => [
+ 'Language (interface)' => [
[ '{{formatnum:123456.789}}', true, true, Language::factory( 'is' ) ],
"<p>123.456,789\n</p>",
'123.456,789',
[ '== Header ==' ],
'<div class="mw-parser-output"><h2><span class="mw-headline" id="Header">' .
"Header</span></h2>\n</div>",
+ '<h2><span class="mw-headline" id="Header">Header</span></h2>' .
+ "\n",
]
];
}