public function testUsesTheRegexCachedGroupForTheTokenValue() { $value = '@user foo'; $expected = [new Token('@user', new TokenType(TokenType::SIMPLE_REFERENCE_TYPE))]; $actual = $this->lexer->lex($value); $this->assertEquals($expected, $actual); }