Skip to content

Commit

Permalink
Test for utf-8 strings in header search query
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Sep 17, 2014
1 parent 0cbd37f commit 70e28f7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions framework/Imap_Client/test/Horde/Imap/Client/SearchTest.php
Expand Up @@ -118,6 +118,23 @@ public function headerTextQueryProvider()
);
}

public function testHeaderTextUtf8Query()
{
$ob = new Horde_Imap_Client_Search_Query();
$ob->headerText('Foo', 'EëE');

try {
$ob->build();
$this->fail();
} catch (Horde_Imap_Client_Data_Format_Exception $e) {
// Expected
}

$ob->charset('UTF-8', false);

$this->assertNotEmpty($ob->build());
}

/**
* @dataProvider textQueryProvider
*/
Expand Down

0 comments on commit 70e28f7

Please sign in to comment.