/** * Transliterate a UTF-8 value to ASCII. * * @param string $value * @return string */ public static function ascii($value) { return StaticStringy::toAscii($value); }
public function toAscii($string) { return Stringy::toAscii($string); }
/** * @dataProvider toAsciiProvider() */ public function testToAscii($expected, $str, $removeUnsupported = true) { $result = S::toAscii($str, $removeUnsupported); $this->assertInternalType('string', $result); $this->assertEquals($expected, $result); }
/** * @dataProvider toAsciiProvider() */ public function testToAscii($expected, $str) { $result = S::toAscii($str); $this->assertInternalType('string', $result); $this->assertEquals($expected, $result); }