コード例 #1
0
 /**
  * {@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);
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  */
 public function slugify($string, $separator = null)
 {
     $string = $this->expandString($string);
     return parent::slugify($string, $separator);
 }