- 
      
- 
        Save xicond/f5949c87a8ad4b384f9cc1bb891fa00c to your computer and use it in GitHub Desktop. 
Revisions
- 
        xicond created this gist Nov 22, 2017 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ public function testSlugifyDashSpace() { $faker = Faker\Factory::create(); $faker->addProvider(new Faker\Provider\Lorem($faker)); $str1 = $faker->word; $str2 = $faker->word; $this->assertEquals($str1.' '.$str2, TextHelper::slugifyDashSpace($str1.' '.$str2)); Yii::$app->params['slugifyDashSpace'][Yii::$app->params['projectCode']] = true; $this->assertEquals($str1.' '.$str2, TextHelper::slugifyDashSpace($str1.'-'.$str2)); }