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