public function test_parse_between_parentheses__2() { $texte = '(trans.: s.t. (-mut (-mik))); abc'; $texte_entre_parantheses = Analyzer_MeaningOfMorpheme_Statement::parse_between_parentheses($texte); $attendu = '(trans.: s.t. (-mut (-mik)))'; $reste_attendu = '; abc'; $this->assertTrue($texte_entre_parantheses != false, ""); $this->assertEquals($attendu, $texte_entre_parantheses, ""); $this->assertEquals($reste_attendu, $texte, ""); }
public static function _parseVerbSens($string) { $parser = new Analyzer_MeaningOfMorpheme_Statement(); $analyses = $parser->parse($string); return $analyses; }