Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / test / Exception / FatalErrorExceptionTest.php
index f84268d007fc74fb9f9c941f37d1a87eb94b7739..36c7dd8c11cab5340bcf031483be21b85f5e3d09 100644 (file)
@@ -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());
+    }
 }