Browse Source

Merge pull request #7487 from davidyell/inflecting-with-blanks

Inflecting with a blank replacement
Mark Story 10 years ago
parent
commit
c2aae82d38
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);
     }
 
     /**