X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar/vendor/mtdowling/jmespath.php/tests
home
/
gfecatvj
/
sites
/
realesbar
/
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: ParserTest.php
<?php namespace JmesPath\Tests; use JmesPath\Lexer; use JmesPath\Parser; use PHPUnit\Framework\TestCase; /** * @covers JmesPath\Parser */ class ParserTest extends TestCase { /** * @expectedException \JmesPath\SyntaxErrorException * @expectedExceptionMessage Syntax error at character 0 */ public function testMatchesFirstTokens() { $p = new Parser(new Lexer()); $p->parse('.bar'); } /** * @expectedException \JmesPath\SyntaxErrorException * @expectedExceptionMessage Syntax error at character 1 */ public function testThrowsSyntaxErrorForInvalidSequence() { $p = new Parser(new Lexer()); $p->parse('a,'); } /** * @expectedException \JmesPath\SyntaxErrorException * @expectedExceptionMessage Syntax error at character 2 */ public function testMatchesAfterFirstToken() { $p = new Parser(new Lexer()); $p->parse('a.,'); } /** * @expectedException \JmesPath\SyntaxErrorException * @expectedExceptionMessage Unexpected "eof" token */ public function testHandlesEmptyExpressions() { (new Parser(new Lexer()))->parse(''); } }
Upload File
Create Folder