public function EmailLexerTests::invalidUTF8CharsProvider in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/egulias/email-validator/tests/egulias/Tests/EmailValidator/EmailLexerTest.php \Egulias\EmailValidator\Tests\EmailLexerTests::invalidUTF8CharsProvider()
File
- vendor/
egulias/ email-validator/ tests/ egulias/ Tests/ EmailValidator/ EmailLexerTest.php, line 53
Class
Namespace
Egulias\EmailValidator\TestsCode
public function invalidUTF8CharsProvider() {
$chars = array();
for ($i = 0; $i < 0x100; ++$i) {
$c = $this
->utf8Chr($i);
if (preg_match('/(?=\\p{Cc})(?=[^\\t\\n\\n\\r])/u', $c) && !preg_match('/\\x{0000}/u', $c)) {
$chars[] = array(
$c,
);
}
}
return $chars;
}