Browse Source

Added a use-case of using a blank replacement in the Slug test

David Yell 10 years ago
parent
commit
05c9decd36
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/TestCase/Utility/InflectorTest.php

+ 4 - 0
tests/TestCase/Utility/InflectorTest.php

@@ -393,6 +393,10 @@ class InflectorTest extends TestCase
 
         $result = Inflector::slug("non\xc2\xa0breaking\xc2\xa0space");
         $this->assertEquals('non-breaking-space', $result);
+
+        $result = Inflector::slug('Foo Bar: Not just for breakfast any-more', '');
+        $expected = 'FooBarNotjustforbreakfastanymore';
+        $this->assertEquals($expected, $result);
     }
 
     /**