You are here

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

File

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

Class

EmailLexerTests

Namespace

Egulias\EmailValidator\Tests

Code

public function getTokens() {
  return array(
    array(
      "foo",
      EmailLexer::GENERIC,
    ),
    array(
      "\r",
      EmailLexer::S_CR,
    ),
    array(
      "\t",
      EmailLexer::S_HTAB,
    ),
    array(
      "\r\n",
      EmailLexer::CRLF,
    ),
    array(
      "\n",
      EmailLexer::S_LF,
    ),
    array(
      " ",
      EmailLexer::S_SP,
    ),
    array(
      "@",
      EmailLexer::S_AT,
    ),
    array(
      "IPv6",
      EmailLexer::S_IPV6TAG,
    ),
    array(
      "::",
      EmailLexer::S_DOUBLECOLON,
    ),
    array(
      ":",
      EmailLexer::S_COLON,
    ),
    array(
      ".",
      EmailLexer::S_DOT,
    ),
    array(
      "\"",
      EmailLexer::S_DQUOTE,
    ),
    array(
      "-",
      EmailLexer::S_HYPHEN,
    ),
    array(
      "\\",
      EmailLexer::S_BACKSLASH,
    ),
    array(
      "/",
      EmailLexer::S_SLASH,
    ),
    array(
      "(",
      EmailLexer::S_OPENPARENTHESIS,
    ),
    array(
      ")",
      EmailLexer::S_CLOSEPARENTHESIS,
    ),
    array(
      '<',
      EmailLexer::S_LOWERTHAN,
    ),
    array(
      '>',
      EmailLexer::S_GREATERTHAN,
    ),
    array(
      '[',
      EmailLexer::S_OPENBRACKET,
    ),
    array(
      ']',
      EmailLexer::S_CLOSEBRACKET,
    ),
    array(
      ';',
      EmailLexer::S_SEMICOLON,
    ),
    array(
      ',',
      EmailLexer::S_COMMA,
    ),
    array(
      '<',
      EmailLexer::S_LOWERTHAN,
    ),
    array(
      '>',
      EmailLexer::S_GREATERTHAN,
    ),
    array(
      '{',
      EmailLexer::S_OPENQBRACKET,
    ),
    array(
      '}',
      EmailLexer::S_CLOSEQBRACKET,
    ),
    array(
      '',
      EmailLexer::S_EMPTY,
    ),
    array(
      chr(31),
      EmailLexer::INVALID,
    ),
    array(
      chr(226),
      EmailLexer::GENERIC,
    ),
    array(
      chr(0),
      EmailLexer::C_NUL,
    ),
  );
}