Skip to content

Commit

Permalink
Added a use-case of using a blank replacement in the Slug test
Browse files Browse the repository at this point in the history
  • Loading branch information
David Yell committed Sep 30, 2015
1 parent f9f8e22 commit 05c9dec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/TestCase/Utility/InflectorTest.php
Expand Up @@ -393,6 +393,10 @@ public function testSlug()

$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);
}

/**
Expand Down

0 comments on commit 05c9dec

Please sign in to comment.