You are here

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

File

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

Class

EmailLexerTests

Namespace

Egulias\EmailValidator\Tests

Code

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