/** * {@inheritdoc} */ public static function slugify($string, $separator = null) { $string = self::expandString($string); return parent::slugify($string, $separator); }
/** * @dataProvider getSlugs */ public function testSlugify($string, $slug) { $slugger = new Slugger(); $result = $slugger->slugify($string); $this->assertEquals($slug, $result); }
/** * {@inheritdoc} */ public function slugify($string, $separator = null) { $string = $this->expandString($string); return parent::slugify($string, $separator); }