You are here

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

File

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

Class

EmailLexerTests

Namespace

Egulias\EmailValidator\Tests

Code

public function testLexerForTab() {
  $lexer = new EmailLexer();
  $lexer
    ->setInput("foo\tbar");
  $lexer
    ->moveNext();
  $lexer
    ->skipUntil(EmailLexer::S_HTAB);
  $lexer
    ->moveNext();
  $this
    ->assertEquals(EmailLexer::S_HTAB, $lexer->token['type']);
}