diff vendor/psy/psysh/test/Exception/FatalErrorExceptionTest.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 5fb285c0d0e3
children
line wrap: on
line diff
--- a/vendor/psy/psysh/test/Exception/FatalErrorExceptionTest.php	Thu Apr 26 11:26:54 2018 +0100
+++ b/vendor/psy/psysh/test/Exception/FatalErrorExceptionTest.php	Tue Jul 10 15:07:59 2018 +0100
@@ -42,4 +42,10 @@
         $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());
+    }
 }