Skip to content

Commit

Permalink
Add some EAI tests to MatchTest
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Oct 11, 2014
1 parent dede274 commit 4f1fe33
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions framework/Mail/test/Horde/Mail/MatchTest.php
Expand Up @@ -25,6 +25,7 @@ public function testMatch($in, $match, $expected)
public function matchProvider()
{
$test1 = 'Test <test@example.com>';
$test2 = 'Test <täst@example.com>';

return array(
array(
Expand All @@ -41,6 +42,16 @@ public function matchProvider()
$test1,
'Foo <Test@example.com>',
false
),
array(
$test2,
'Foo <test@example.com>',
false
),
array(
$test2,
'täst@example.com',
true
)
);
}
Expand All @@ -61,6 +72,7 @@ public function testInsensitiveMatch($in, $match, $expected)
public function insensitiveMatchProvider()
{
$test1 = 'Test <test@example.com>';
$test2 = 'Test <täst@example.com>';

return array(
array(
Expand All @@ -82,6 +94,11 @@ public function insensitiveMatchProvider()
$test1,
'test1@example.com',
false
),
array(
$test2,
'TäST@EXAMPLE.cOm',
true
)
);
}
Expand Down

0 comments on commit 4f1fe33

Please sign in to comment.