Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Add tests for adressess with UTF-8 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
BreyndotEchse authored and Marvin Feldmann committed Apr 26, 2016
1 parent 3c69947 commit 983fd5e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/EmailAddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function testEmailDisplay()
public function validEmailAddresses()
{
// @codingStandardsIgnoreStart
return [
$return = [
'[email protected]' => ['[email protected]'],
'[email protected]' => ['[email protected]'],
'[email protected]' => ['[email protected]'],
Expand All @@ -232,6 +232,13 @@ public function validEmailAddresses()
'bob@verylongdomainsupercalifragilisticexpialidociousspoonfulofsugar.com' => ['bob@verylongdomainsupercalifragilisticexpialidociousspoonfulofsugar.com'],
"B.O'[email protected]" => ["B.O'[email protected]"],
];

if (extension_loaded('intl')) {
$return['bob@موقع.إختبار'] = ['bob@موقع.إختبار'];
$return['[email protected]'] = ['[email protected]'];
}

return $return;
// @codingStandardsIgnoreEnd
}

Expand Down Expand Up @@ -269,6 +276,7 @@ public function invalidEmailAddresses()
'bob @ domain.com' => ['bob @ domain.com'],
'[email protected]' => ['[email protected]'],
'"bob%[email protected]' => ['"bob%[email protected]'],
'иван@письмо.рф' => ['иван@письмо.рф'],
'multiline' => ['bob
@domain.com'],
Expand Down

0 comments on commit 983fd5e

Please sign in to comment.