public function EmailLexerTests::testLexerForUTF8 in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/egulias/email-validator/tests/egulias/Tests/EmailValidator/EmailLexerTest.php \Egulias\EmailValidator\Tests\EmailLexerTests::testLexerForUTF8()
File
- vendor/
egulias/ email-validator/ tests/ egulias/ Tests/ EmailValidator/ EmailLexerTest.php, line 106
Class
Namespace
Egulias\EmailValidator\TestsCode
public function testLexerForUTF8() {
$lexer = new EmailLexer();
$lexer
->setInput("áÇ@bar.com");
$lexer
->moveNext();
$lexer
->moveNext();
$this
->assertEquals(EmailLexer::GENERIC, $lexer->token['type']);
$lexer
->moveNext();
$this
->assertEquals(EmailLexer::GENERIC, $lexer->token['type']);
}