Пример #1
0
 /**
  * @return MediaWikiMessageChecker
  */
 public function getChecker()
 {
     $checker = new MediaWikiMessageChecker($this);
     $checker->setChecks(array(array($checker, 'pluralCheck'), array($checker, 'wikiParameterCheck'), array($checker, 'XhtmlCheck'), array($checker, 'braceBalanceCheck'), array($checker, 'pagenameMessagesCheck'), array($checker, 'miscMWChecks')));
     return $checker;
 }
 /**
  * @dataProvider removeExplicitPluralFormsProvider
  */
 public function testRemoveExplicitPluralForms($expected, $forms, $comment)
 {
     $provided = MediaWikiMessageChecker::removeExplicitPluralForms($forms);
     $this->assertEquals($expected, $provided, $comment);
 }