X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fparser%2FParserMethodsTest.php;h=d2ed4415bff7fbfebf2bdf0f38c51068ec7f6ae6;hp=5e00384ae7373995d6369159fb1b8fc05f68d1e9;hb=48cfdf716301fa0b53f97ca771456bf861e9f108;hpb=57eaa2bf04ce1b48bd89c10defe4de5b7d31f047 diff --git a/tests/phpunit/includes/parser/ParserMethodsTest.php b/tests/phpunit/includes/parser/ParserMethodsTest.php index 5e00384ae7..d2ed4415bf 100644 --- a/tests/phpunit/includes/parser/ParserMethodsTest.php +++ b/tests/phpunit/includes/parser/ParserMethodsTest.php @@ -2,8 +2,9 @@ /** * @group Database + * @covers Parser + * @covers BlockLevelPass */ - class ParserMethodsTest extends MediaWikiLangTestCase { public static function providePreSaveTransform() { @@ -19,7 +20,6 @@ class ParserMethodsTest extends MediaWikiLangTestCase { /** * @dataProvider providePreSaveTransform - * @covers Parser::preSaveTransform */ public function testPreSaveTransform( $text, $expected ) { global $wgParser; @@ -63,7 +63,6 @@ class ParserMethodsTest extends MediaWikiLangTestCase { /** * @dataProvider provideStripOuterParagraph - * @covers Parser::stripOuterParagraph */ public function testStripOuterParagraph( $text, $expected ) { $this->assertEquals( $expected, Parser::stripOuterParagraph( $text ) ); @@ -73,7 +72,6 @@ class ParserMethodsTest extends MediaWikiLangTestCase { * @expectedException MWException * @expectedExceptionMessage Parser state cleared while parsing. * Did you call Parser::parse recursively? - * @covers Parser::lock */ public function testRecursiveParse() { global $wgParser; @@ -90,9 +88,6 @@ class ParserMethodsTest extends MediaWikiLangTestCase { return 'bar'; } - /** - * @covers Parser::callParserFunction - */ public function testCallParserFunction() { global $wgParser; @@ -111,7 +106,7 @@ class ParserMethodsTest extends MediaWikiLangTestCase { } /** - * @covers Parser::parse + * @covers Parser * @covers ParserOutput::getSections */ public function testGetSections() { @@ -155,8 +150,6 @@ class ParserMethodsTest extends MediaWikiLangTestCase { /** * @dataProvider provideNormalizeLinkUrl - * @covers Parser::normalizeLinkUrl - * @covers Parser::normalizeUrlComponent */ public function testNormalizeLinkUrl( $explanation, $url, $expected ) { $this->assertEquals( $expected, Parser::normalizeLinkUrl( $url ), $explanation );