1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-08-12 16:24:00 +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

@@ -300,10 +300,10 @@ class StringyTestCase extends CommonTest
/**
* @dataProvider toAsciiProvider()
*/
public function testToAscii($expected, $str)
public function testToAscii($expected, $str, $removeUnsupported = true)
{
$stringy = S::create($str);
$result = $stringy->toAscii();
$result = $stringy->toAscii($removeUnsupported);
$this->assertStringy($result);
$this->assertEquals($expected, $result);
$this->assertEquals($str, $stringy);