You are here

public function EmailLexerTests::testLexerParsesInvalidUTF8 in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/egulias/email-validator/tests/egulias/Tests/EmailValidator/EmailLexerTest.php \Egulias\EmailValidator\Tests\EmailLexerTests::testLexerParsesInvalidUTF8()

@dataProvider invalidUTF8CharsProvider

File

vendor/egulias/email-validator/tests/egulias/Tests/EmailValidator/EmailLexerTest.php, line 43

Class

EmailLexerTests

Namespace

Egulias\EmailValidator\Tests

Code

public function testLexerParsesInvalidUTF8($char) {
  $lexer = new EmailLexer();
  $lexer
    ->setInput($char);
  $lexer
    ->moveNext();
  $lexer
    ->moveNext();
  $this
    ->assertEquals(EmailLexer::INVALID, $lexer->token['type']);
}