Skip to content

Commit

Permalink
Add failing test for Text::slug()
Browse files Browse the repository at this point in the history
Cleaning the string fails when string contains bracket and "preserve" option is set.
  • Loading branch information
ADmad committed Oct 3, 2017
1 parent d738b22 commit a72fcae
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/TestCase/Utility/TextTest.php
Expand Up @@ -1804,7 +1804,15 @@ public function slugInputProvider()
[
'clean!_me.tar.gz', ['preserve' => '.'],
'clean-me.tar.gz'
]
],
[
'cl#ean(me', [],
'cl-ean-me'
],
[
'cl#ean(me.jpg', ['preserve' => '.'],
'cl-ean-me.jpg'
],
];
}

Expand Down

0 comments on commit a72fcae

Please sign in to comment.