$path =
new ViolationPath($string);
$this->
assertSame($slicedPath,
$path->
__toString());
$this->
assertCount(\
count($entries),
$path->
getElements());
$this->
assertSame(\
count($entries),
$path->
getLength());
foreach ($entries as $index =>
$entry) { $this->
assertEquals($entry[0
],
$path->
getElement($index));
$this->
assertSame($entry[1
],
$path->
mapsForm($index));
$this->
assertSame($entry[2
],
$path->
isIndex($index));
$this->
assertSame(!
$entry[2
],
$path->
isProperty($index));
} } public static function provideParents() { return [ ['children[address]', null
],
['children[address].children[street]', 'children[address]'
],
['children[address].data.street', 'children[address]'
],
['children[address].data[street]', 'children[address]'
],
['data.address', null
],
[