@@ -53,7 +53,9 @@ public function testReduceWithBasicProperty()
5353 {"category": "reference", "author": "Nigel Rees", "title": "Sayings", "price": 8.95},
5454 {"category": "fiction", "author": "Evelyn Waugh", "title": "Sword", "price": 12.99}
5555 ]}
56- JSON , $ reduced ['json ' ]);
56+ JSON ,
57+ $ reduced ['json ' ]
58+ );
5759 $ this ->assertEquals ([new JsonPathToken (TokenType::Name, 'book ' )], $ reduced ['tokens ' ]);
5860 }
5961
@@ -74,7 +76,9 @@ public function testReduceUntilFilter()
7476 {"category": "reference", "author": "Nigel Rees", "title": "Sayings", "price": 8.95},
7577 {"category": "fiction", "author": "Evelyn Waugh", "title": "Sword", "price": 12.99}
7678 ]}
77- JSON , $ reduced ['json ' ]);
79+ JSON ,
80+ $ reduced ['json ' ]
81+ );
7882 $ this ->assertEquals ([new JsonPathToken (TokenType::Bracket, '?(@.book.author == "Nigel Rees") ' )], $ reduced ['tokens ' ]);
7983 }
8084
@@ -116,7 +120,10 @@ public function testDoesNotReduceOnArraySlice()
116120 {"category": "reference", "author": "Nigel Rees", "title": "Sayings", "price": 8.95},
117121 {"category": "fiction", "author": "Evelyn Waugh", "title": "Sword", "price": 12.99}
118122 ]
119- JSON , $ reduced ['json ' ], 'reduce to "book", but not further ' );
123+ JSON ,
124+ $ reduced ['json ' ],
125+ 'reduce to "book", but not further '
126+ );
120127 $ this ->assertEquals ([
121128 new JsonPathToken (TokenType::Bracket, '1:2 ' ),
122129 ], $ reduced ['tokens ' ]);
@@ -158,7 +165,10 @@ public function testDoesNotReduceOnUnknownIndex()
158165 {"category": "reference", "author": "Nigel Rees", "title": "Sayings", "price": 8.95},
159166 {"category": "fiction", "author": "Evelyn Waugh", "title": "Sword", "price": 12.99}
160167 ]
161- JSON , $ reduced ['json ' ], 'reduce to "book", but not further ' );
168+ JSON ,
169+ $ reduced ['json ' ],
170+ 'reduce to "book", but not further '
171+ );
162172 $ this ->assertEquals ([
163173 new JsonPathToken (TokenType::Bracket, '123 ' ),
164174 new JsonPathToken (TokenType::Name, 'title ' ),
0 commit comments