Example #1
0
 public function publishTestArticles()
 {
     if (empty(self::$articles)) {
         return;
     }
     foreach (self::$articles as $name => $info) {
         list($text, $line) = $info;
         ParserTest::addArticle($name, $text, $line, 'ignoreduplicate');
     }
 }
Example #2
0
 public function publishTestArticles()
 {
     if (empty(self::$articles)) {
         return;
     }
     foreach (self::$articles as $name => $text) {
         $title = Title::newFromText($name);
         if ($title->getArticleID(Title::GAID_FOR_UPDATE) == 0) {
             ParserTest::addArticle($name, $text);
         }
     }
 }