public function test_Index_Simple() { $tokens = (new JSONPathLexer('.foo'))->parseExpression(); $this->assertEquals(JSONPathToken::T_INDEX, $tokens[0]->type); $this->assertEquals("foo", $tokens[0]->value); }