OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
aws-ses
/
vendor
/
mtdowling
/
jmespath.php
/
tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/14/2024 10:52:56 AM
rwxr-xr-x
📄
ComplianceTest.php
4.11 KB
08/14/2024 10:51:27 AM
rw-r--r--
📄
EnvTest.php
928 bytes
08/14/2024 10:51:27 AM
rw-r--r--
📄
FnDispatcherTest.php
1.05 KB
08/14/2024 10:51:27 AM
rw-r--r--
📄
LexerTest.php
2.71 KB
08/14/2024 10:51:27 AM
rw-r--r--
📄
ParserTest.php
1.06 KB
08/14/2024 10:51:27 AM
rw-r--r--
📄
SyntaxErrorExceptionTest.php
1.04 KB
08/14/2024 10:51:27 AM
rw-r--r--
📄
TreeCompilerTest.php
730 bytes
08/14/2024 10:51:27 AM
rw-r--r--
📄
TreeInterpreterTest.php
1.99 KB
08/14/2024 10:51:27 AM
rw-r--r--
📄
UtilsTest.php
3.67 KB
08/14/2024 10:51:27 AM
rw-r--r--
📁
compliance
-
08/14/2024 10:55:53 AM
rwxr-xr-x
Editing: TreeCompilerTest.php
Close
<?php namespace JmesPath\Tests\Tree; use JmesPath\TreeCompiler; use PHPUnit\Framework\TestCase; /** * @covers JmesPath\Tree\TreeCompiler */ class TreeCompilerTest extends TestCase { public function testCreatesSourceCode(): void { $t = new TreeCompiler(); $source = $t->visit( ['type' => 'field', 'value' => 'foo'], 'testing', 'foo' ); $this->assertStringContainsString('<?php', $source); $this->assertStringContainsString('$value = isset($value->{\'foo\'}) ? $value->{\'foo\'} : null;', $source); $this->assertStringContainsString('$value = isset($value[\'foo\']) ? $value[\'foo\'] : null;', $source); } }