/** * @dataProvider hyphenationOfSingleWordWithArrayOutputProvider */ public function testHyphenationOfSingleWordWithArrayOutput($word, $language, $expected) { $o = new h\Options(); $o->setHyphen('-')->setDefaultLocale($language)->setRightMin(2)->setLeftMin(2)->setWordMin(5)->setFilters('NonStandard')->setTokenizers('Whitespace', 'Punctuation'); $h = new h\Hyphenator(); $h->setOptions($o); $this->assertEquals($expected, $h->hyphenate($word)); }
public function fix($content, StateBag $stateBag = null) { return $this->hyphenator->hyphenate($content); }