~ubuntu-branches/ubuntu/trusty/php-mail-mime/trusty

« back to all changes in this revision

Viewing changes to Mail_Mime-1.5.3/tests/test_Bug_9976_1.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Josip Rodin
  • Date: 2010-01-14 09:28:34 UTC
  • mfrom: (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100114092834-kxagianzma4f3wks
Tags: 1.5.3-0.1
* NMU with maintainer's approval.
* New upstream release
  + fixes From: over-encoding, closes: #564214.
* Manual update to our upstream-changelog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
Bug #9976   Subject encoded twice
 
3
--SKIPIF--
 
4
--FILE--
 
5
<?php
 
6
error_reporting(E_ALL); // ignore E_STRICT
 
7
include("Mail/mime.php");
 
8
 
 
9
$mime = new Mail_mime();
 
10
$body = $mime->get(array('text_charset'=>'UTF-8',
 
11
                         'text_encoding'=>'8bit',
 
12
                         'head_charset'=>'UTF-8'
 
13
                        )
 
14
                  ); 
 
15
$hdrs = $mime->headers(array('Subject'=>'Nový Nový!')); 
 
16
 
 
17
print($hdrs['Subject']);
 
18
--EXPECT--
 
19
=?UTF-8?Q?Nov=C3=BD_Nov=C3=BD!?=