OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
Xpress
/
vendor
/
mtdowling
/
jmespath.php
/
tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/05/2025 10:54:38 AM
rwxr-xr-x
📄
ComplianceTest.php
4.11 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
EnvTest.php
928 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
FnDispatcherTest.php
1.05 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
LexerTest.php
2.71 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
ParserTest.php
1.06 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
SyntaxErrorExceptionTest.php
1.04 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
TreeCompilerTest.php
730 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
TreeInterpreterTest.php
1.99 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
UtilsTest.php
3.67 KB
05/19/2025 10:07:16 AM
rw-r--r--
📁
compliance
-
03/05/2025 10:56:49 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')); } }