Exemple #1
0
 public function setTitle($title)
 {
     $this->title = $title;
     $this->name = PostUtils::slugify($title);
     $this->slug = $this->name;
 }
 /**
  * @dataProvider dataProviderSlugify
  */
 public function testSlugify($val, $expected)
 {
     $res = PostUtils::slugify($val);
     $this->assertEquals($res, $expected);
 }