You are here

public function EmailLexerTests::testLexerForUTF8 in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

EmailLexerTests

Namespace

Egulias\EmailValidator\Tests

Code

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']);
}