public function testThrowsAnExceptionIfPassedTokenIsInvalid() { $token = new Token('@user{1..10', new TokenType(TokenType::RANGE_REFERENCE_TYPE)); $parser = new FixtureRangeReferenceTokenParser(); $parser->parse($token); }