/** * @dataProvider phalanxTextModelDataProvider */ public function testPhalanxTextModelWikiCreation($text, $block, $result) { $this->setUpTest($block); $model = new PhalanxTextModel($text); $ret = (int) $model->match_wiki_creation(); $this->assertEquals($result, $ret); }
public static function isAllowedText($text, $where = '', $split = '') { wfProfileIn(__METHOD__); $text = trim($text); $phalanxModel = new PhalanxTextModel($text); $ret = $phalanxModel->match_wiki_creation(); wfProfileOut(__METHOD__); return $ret; }