X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/restate/vendor/mtdowling/jmespath.php/tests
home
/
gfecatvj
/
sites
/
restate
/
vendor
/
mtdowling
/
jmespath.php
/
tests
/
📁
..
📄
ComplianceTest.php
(4.12 KB)
📄
EnvTest.php
(878 B)
📄
FnDispatcherTest.php
(1006 B)
📄
LexerTest.php
(2.57 KB)
📄
ParserTest.php
(1.18 KB)
📄
SyntaxErrorExceptionTest.php
(987 B)
📄
TreeCompilerTest.php
(664 B)
📄
TreeInterpreterTest.php
(1.89 KB)
📄
UtilsTest.php
(3.4 KB)
📁
compliance
Editing: TreeCompilerTest.php
<?php namespace JmesPath\Tests\Tree; use JmesPath\TreeCompiler; use PHPUnit\Framework\TestCase; /** * @covers JmesPath\Tree\TreeCompiler */ class TreeCompilerTest extends TestCase { public function testCreatesSourceCode() { $t = new TreeCompiler(); $source = $t->visit( ['type' => 'field', 'value' => 'foo'], 'testing', 'foo' ); $this->assertContains('<?php', $source); $this->assertContains('$value = isset($value->{\'foo\'}) ? $value->{\'foo\'} : null;', $source); $this->assertContains('$value = isset($value[\'foo\']) ? $value[\'foo\'] : null;', $source); } }
Upload File
Create Folder