OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
Xpress_backup
/
vendor
/
mtdowling
/
jmespath.php
/
tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
01/06/2025 08:24:39 AM
rwxr-xr-x
📄
ComplianceTest.php
4.11 KB
05/19/2025 10:07:18 AM
rw-r--r--
📄
EnvTest.php
928 bytes
05/19/2025 10:07:18 AM
rw-r--r--
📄
FnDispatcherTest.php
1.05 KB
05/19/2025 10:07:18 AM
rw-r--r--
📄
LexerTest.php
2.71 KB
05/19/2025 10:07:18 AM
rw-r--r--
📄
ParserTest.php
1.06 KB
05/19/2025 10:07:18 AM
rw-r--r--
📄
SyntaxErrorExceptionTest.php
1.04 KB
05/19/2025 10:07:18 AM
rw-r--r--
📄
TreeCompilerTest.php
730 bytes
05/19/2025 10:07:18 AM
rw-r--r--
📄
TreeInterpreterTest.php
1.99 KB
05/19/2025 10:07:18 AM
rw-r--r--
📄
UtilsTest.php
3.67 KB
05/19/2025 10:07:18 AM
rw-r--r--
📁
compliance
-
01/06/2025 08:36:14 AM
rwxr-xr-x
Editing: ParserTest.php
Close
<?php namespace JmesPath\Tests; use JmesPath\Lexer; use JmesPath\Parser; use JmesPath\SyntaxErrorException; use PHPUnit\Framework\TestCase; /** * @covers JmesPath\Parser */ class ParserTest extends TestCase { /** * @dataProvider invalidExpressionProvider */ public function testHandlesInvalidExpressions(string $expr, string $msg): void { $p = new Parser(new Lexer()); $this->expectException(SyntaxErrorException::class); $this->expectExceptionMessage($msg); $p->parse($expr); } public static function invalidExpressionProvider(): array { return [ ['', 'Unexpected "eof" token'], ['.bar', 'Syntax error at character 0'], ['a,', 'Syntax error at character 1'], ['a.,', 'Syntax error at character 2'], ['=', 'Syntax error at character 0'], ['<', 'Syntax error at character 0'], ['>', 'Syntax error at character 0'], ['|', 'Syntax error at character 0'] ]; } }