Ver Fonte

ZF-10236: Fix test expectations

- unit test assumptions changed and needed updating due to change in quoted
  printable decoding

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23998 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew há 14 anos atrás
pai
commit
d0dd6699ac
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      tests/Zend/Mail/MessageTest.php

+ 3 - 3
tests/Zend/Mail/MessageTest.php

@@ -217,9 +217,9 @@ class Zend_Mail_MessageTest extends PHPUnit_Framework_TestCase
 
     public function testDecodeString()
     {
-        $is = Zend_Mime_Decode::decodeQuotedPrintable('=?UTF-8?Q?"Peter M=C3=BCller"?= <peter-mueller@example.com>');
-        $should = iconv('UTF-8', iconv_get_encoding('internal_encoding'),
-                        '"Peter Müller" <peter-mueller@example.com>');
+        $string = '"Peter Müller" <peter-mueller@example.com>';
+        $is     = Zend_Mime_Decode::decodeQuotedPrintable($string);
+        $should = quoted_printable_decode($string);
         $this->assertEquals($is, $should);
     }