This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for adressess with UTF-8 characters
- Loading branch information
1 parent
3c69947
commit 983fd5e
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]'], | ||
|
@@ -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 | ||
} | ||
|
||
|
@@ -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'], | ||
|