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: SyntaxErrorExceptionTest.php
<?php namespace JmesPath\Tests; use JmesPath\SyntaxErrorException; use PHPUnit\Framework\TestCase; /** * @covers JmesPath\SyntaxErrorException */ class SyntaxErrorExceptionTest extends 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()); } }
Upload File
Create Folder