X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fpsy%2Fpsysh%2Ftest%2FException%2FFatalErrorExceptionTest.php;fp=vendor%2Fpsy%2Fpsysh%2Ftest%2FException%2FFatalErrorExceptionTest.php;h=36c7dd8c11cab5340bcf031483be21b85f5e3d09;hp=f84268d007fc74fb9f9c941f37d1a87eb94b7739;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/vendor/psy/psysh/test/Exception/FatalErrorExceptionTest.php b/vendor/psy/psysh/test/Exception/FatalErrorExceptionTest.php index f84268d00..36c7dd8c1 100644 --- a/vendor/psy/psysh/test/Exception/FatalErrorExceptionTest.php +++ b/vendor/psy/psysh/test/Exception/FatalErrorExceptionTest.php @@ -42,4 +42,10 @@ class FatalErrorExceptionTest extends \PHPUnit\Framework\TestCase $this->assertContains('{msg}', $e->getMessage()); $this->assertContains('eval()\'d code', $e->getMessage()); } + + public function testNegativeOneLineNumberIgnored() + { + $e = new FatalErrorException('{msg}', 0, 1, null, -1); + $this->assertEquals(0, $e->getLine()); + } }