Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / nikic / php-parser / test / PhpParser / ErrorHandler / ThrowingTest.php
index 31d349ae42b14e270a059eb25402a049ae7dd119..8735be8cca173c1a23b283e1e3da4077d316a1df 100644 (file)
@@ -7,11 +7,9 @@ use PHPUnit\Framework\TestCase;
 
 class ThrowingTest extends TestCase
 {
-    /**
-     * @expectedException \PhpParser\Error
-     * @expectedExceptionMessage Test
-     */
     public function testHandleError() {
+        $this->expectException(Error::class);
+        $this->expectExceptionMessage('Test');
         $errorHandler = new Throwing();
         $errorHandler->handleError(new Error('Test'));
     }