1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-08-23 13:22:54 +02:00

toAscii changes: rename locale to language, correct some transliterations

This commit is contained in:
Daniel St. Jules
2017-03-08 19:14:42 -05:00
parent bf2a302aa1
commit 72102ae911
4 changed files with 53 additions and 51 deletions

View File

@@ -653,11 +653,11 @@ class StringyTestCase extends PHPUnit_Framework_TestCase
/**
* @dataProvider toAsciiProvider()
*/
public function testToAscii($expected, $str, $locale = 'en',
public function testToAscii($expected, $str, $language = 'en',
$removeUnsupported = true)
{
$stringy = S::create($str);
$result = $stringy->toAscii($locale, $removeUnsupported);
$result = $stringy->toAscii($language, $removeUnsupported);
$this->assertStringy($result);
$this->assertEquals($expected, $result);
$this->assertEquals($str, $stringy);