示例#1
0
 /**
  * @group bug45059
  * @dataProvider intlTextProvider
  * @param string $inputText - our input from the provider, base64'ed
  * @param string $expected - what our goal is
  */
 public function testConvertToUtf8($inputText, $expected)
 {
     // the email server is down, so this test doesn't work
     if (!function_exists('mb_convert_encoding')) {
         $this->markTestSkipped('Need multibyte encoding support');
     }
     $ie = new InboundEmail();
     $inputText = base64_decode($inputText);
     $this->assertEquals($expected, $ie->convertToUtf8($inputText), 'We should be able to convert to UTF-8');
 }
 public function testconvertToUtf8()
 {
     $inboundEmail = new InboundEmail();
     $result = $inboundEmail->convertToUtf8('some text with non UTF8 chars');
     $this->assertSame('some text with non UTF8 chars', $result);
 }