mirror of
https://github.com/halaxa/json-machine.git
synced 2025-02-21 06:32:36 +01:00
Added test cases to testGetCurrentJsonPointer and testGetMatchedJsonPointer
This commit is contained in:
parent
27f93442c8
commit
e68452db63
@ -352,6 +352,11 @@ class ParserTest extends \PHPUnit_Framework_TestCase
|
||||
'{"one": [1,11], "two": [2,22], "three": [3,33], "four": [4,44]}',
|
||||
['/two', '/two', '/four', '/four'],
|
||||
],
|
||||
[
|
||||
['/-/two', '/-/one'],
|
||||
'[{"one": 1, "two": 2}, {"one": 1, "two": 2}]',
|
||||
['/0/one', '/0/two', '/1/one', '/1/two'],
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
@ -386,6 +391,11 @@ class ParserTest extends \PHPUnit_Framework_TestCase
|
||||
'{"one": [1,11], "two": [2,22], "three": [3,33], "four": [4,44]}',
|
||||
['/two', '/two', '/four', '/four'],
|
||||
],
|
||||
[
|
||||
['/-/two', '/-/one'],
|
||||
'[{"one": 1, "two": 2}, {"one": 1, "two": 2}]',
|
||||
['/-/one', '/-/two', '/-/one', '/-/two'],
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user