/var/www/vhosts/nabawater/vendor/mtdowling/jmespath.php/tests
NameSizeModeActions
compliance/-0755rm
ComplianceTest.php41400644editdlrm
EnvTest.php8750644editdlrm
FnDispatcherTest.php9930644editdlrm
LexerTest.php27610644editdlrm
ParserTest.php11930644editdlrm
SyntaxErrorExceptionTest.php9740644editdlrm
TreeCompilerTest.php6510644editdlrm
TreeInterpreterTest.php19570644editdlrm
UtilsTest.php34660644editdlrm
Edit: /var/www/vhosts/nabawater/vendor/mtdowling/jmespath.php/tests/TreeInterpreterTest.php (1957B)
assertNull($t->visit(array( 'type' => 'flatten', 'children' => array( array('type' => 'literal', 'value' => 1), array('type' => 'literal', 'value' => 1) ) ), array(), array( 'runtime' => new AstRuntime() ))); } public function testWorksWithArrayObjectAsObject() { $runtime = new AstRuntime(); $this->assertEquals('baz', $runtime('foo.bar', new \ArrayObject([ 'foo' => new \ArrayObject(['bar' => 'baz']) ]))); } public function testWorksWithArrayObjectAsArray() { $runtime = new AstRuntime(); $this->assertEquals('baz', $runtime('foo[0].bar', new \ArrayObject([ 'foo' => new \ArrayObject([new \ArrayObject(['bar' => 'baz'])]) ]))); } public function testWorksWithArrayProjections() { $runtime = new AstRuntime(); $this->assertEquals( ['baz'], $runtime('foo[*].bar', new \ArrayObject([ 'foo' => new \ArrayObject([ new \ArrayObject([ 'bar' => 'baz' ]) ]) ])) ); } public function testWorksWithObjectProjections() { $runtime = new AstRuntime(); $this->assertEquals( ['baz'], $runtime('foo.*.bar', new \ArrayObject([ 'foo' => new \ArrayObject([ 'abc' => new \ArrayObject([ 'bar' => 'baz' ]) ]) ])) ); } }