Пример #1
0
 public function testAsciify()
 {
     $this->assertEquals("Mixed with English and Germaen", $this->object->asciify("Mixed with English and Germän", "de_DE"));
     $this->assertEquals("Mixed with English and ", $this->object->asciify("Mixed with English and 日本人"));
     $this->assertEquals("Mixed with English and .doc", $this->object->asciify("Mixed with English and 日本人.doc"));
     $this->assertEquals("Mixed with English and .", $this->object->asciify("Mixed with English and 日本人.日本人"));
     $this->assertEquals("", $this->object->asciify("日本人"));
     $this->assertEquals(".doc", $this->object->asciify("日本人.doc"));
     $this->assertEquals(".", $this->object->asciify("日本人.日本人"));
 }
Пример #2
0
 /**
  * @dataProvider asciifyDataProvider
  */
 public function testAsciify($expected, $input1, $input2)
 {
     $this->assertEquals($expected, $this->object->asciify($input1, $input2));
 }