Skip to content

Commit

Permalink
Add UTF-8 append test
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Sep 17, 2014
1 parent 862b996 commit 4f8b550
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions framework/Imap_Client/test/Horde/Imap/Client/Live/Imap.php
Expand Up @@ -353,6 +353,24 @@ public function testAppendMessagesToMailbox()
fclose($handle2);
}

/**
* @depends testStatus
*/
public function testAppendMessagesToUtf8Mailbox()
{
// Appending test e-mail 1 (with Flagged), 2 via a stream (with Seen),
// 3 via a stream (with internaldate), and 4 via a string:
$uid = self::$live->append(self::$test_mbox_utf8, array(
array(
'data' => file_get_contents(__DIR__ . '/../fixtures/remote1.txt')
)
));

if (!($uid instanceof Horde_Imap_Client_Ids)) {
$this->fail('Append successful but UIDs not properly returned.');
}
}

/**
* @depends testAppendMessagesToMailbox
*/
Expand Down

0 comments on commit 4f8b550

Please sign in to comment.