WP File Manager
Current Path:
/
home
/
itutorethiopia
/
public_html
/
vendor
/
mtdowling
/
jmespath.php
/
tests
/
Name
Action
..
ComplianceTest.php
Edit
EnvTest.php
Edit
FnDispatcherTest.php
Edit
LexerTest.php
Edit
ParserTest.php
Edit
SyntaxErrorExceptionTest.php
Edit
TreeCompilerTest.php
Edit
TreeInterpreterTest.php
Edit
UtilsTest.php
Edit
compliance
Editing: ParserTest.php
<?php namespace JmesPath\Tests; use JmesPath\Lexer; use JmesPath\Parser; /** * @covers JmesPath\Parser */ class ParserTest extends \PHPUnit_Framework_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(''); } }