You are here

public function EmailLexerTests::testLexerTokens 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::testLexerTokens()

@dataProvider getTokens

File

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

Class

EmailLexerTests

Namespace

Egulias\EmailValidator\Tests

Code

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