1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-08-17 18:46:19 +02:00

Add $removeUnsupported parameter to toAscii()

This commit is contained in:
vlakoff
2015-02-03 02:51:22 +01:00
parent 9a0f0e16cb
commit 97e607dc5d
6 changed files with 21 additions and 12 deletions

View File

@@ -133,9 +133,9 @@ class StaticStringyTestCase extends CommonTest
/**
* @dataProvider toAsciiProvider()
*/
public function testToAscii($expected, $str)
public function testToAscii($expected, $str, $removeUnsupported = true)
{
$result = S::toAscii($str);
$result = S::toAscii($str, $removeUnsupported);
$this->assertInternalType('string', $result);
$this->assertEquals($expected, $result);
}