OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
znew1aws-ses
/
vendor
/
mtdowling
/
jmespath.php
/
tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/16/2024 08:30:20 AM
rwxr-xr-x
📄
ComplianceTest.php
4.11 KB
08/16/2024 08:28:01 AM
rw-r--r--
📄
EnvTest.php
928 bytes
08/16/2024 08:28:01 AM
rw-r--r--
📄
FnDispatcherTest.php
1.05 KB
08/16/2024 08:28:01 AM
rw-r--r--
📄
LexerTest.php
2.71 KB
08/16/2024 08:28:01 AM
rw-r--r--
📄
ParserTest.php
1.06 KB
08/16/2024 08:28:02 AM
rw-r--r--
📄
SyntaxErrorExceptionTest.php
1.04 KB
08/16/2024 08:28:02 AM
rw-r--r--
📄
TreeCompilerTest.php
730 bytes
08/16/2024 08:28:02 AM
rw-r--r--
📄
TreeInterpreterTest.php
1.99 KB
08/16/2024 08:28:02 AM
rw-r--r--
📄
UtilsTest.php
3.67 KB
08/16/2024 08:28:02 AM
rw-r--r--
📁
compliance
-
08/16/2024 08:32:45 AM
rwxr-xr-x
Editing: EnvTest.php
Close
<?php namespace JmesPath\Tests; use JmesPath\Env; use JmesPath\CompilerRuntime; use PHPUnit\Framework\TestCase; class EnvTest extends TestCase { public function testSearchesInput(): void { $data = ['foo' => 123]; $this->assertEquals(123, Env::search('foo', $data)); $this->assertEquals(123, Env::search('foo', $data)); } public function testSearchesWithFunction(): void { $data = ['foo' => 123]; $this->assertEquals(123, \JmesPath\search('foo', $data)); } public function testCleansCompileDir(): void { $dir = sys_get_temp_dir(); $runtime = new CompilerRuntime($dir); $runtime('@ | @ | @[0][0][0]', []); $this->assertNotEmpty(glob($dir . '/jmespath_*.php')); $this->assertGreaterThan(0, Env::cleanCompileDir()); $this->assertEmpty(glob($dir . '/jmespath_*.php')); } }