Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Aug 27, 2019
1 parent 1d8e127 commit 6e280b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/core/helpers/InflectorHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class InflectorHelperTest extends \luyatests\LuyaWebTestCase
{
public function testSlug()
{
$this->assertSame('www-luya-io', Inflector::slug(Inflector::camel2words('www.luya.io')));
// testing with transliteration and with lowercase transformation
$this->assertEquals('zhe-shi-luya', Inflector::slug('這是 LUYA ', '-', true, true));
// testing with transliteration and without lowercase transformation
Expand Down

0 comments on commit 6e280b9

Please sign in to comment.