public function EmailLexerTests::testLexerTokens 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::testLexerTokens()
@dataProvider getTokens
File
- vendor/
egulias/ email-validator/ tests/ egulias/ Tests/ EmailValidator/ EmailLexerTest.php, line 20
Class
Namespace
Egulias\EmailValidator\TestsCode
public function testLexerTokens($str, $token) {
$lexer = new EmailLexer();
$lexer
->setInput($str);
$lexer
->moveNext();
$lexer
->moveNext();
$this
->assertEquals($token, $lexer->token['type']);
}