Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/test/PhpParser/ErrorHandler/ThrowingTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 5fb285c0d0e3 |
children |
rev | line source |
---|---|
Chris@13 | 1 <?php declare(strict_types=1); |
Chris@0 | 2 |
Chris@0 | 3 namespace PhpParser\ErrorHandler; |
Chris@0 | 4 |
Chris@0 | 5 use PhpParser\Error; |
Chris@0 | 6 |
Chris@17 | 7 class ThrowingTest extends \PHPUnit\Framework\TestCase |
Chris@13 | 8 { |
Chris@0 | 9 public function testHandleError() { |
Chris@17 | 10 $this->expectException(Error::class); |
Chris@17 | 11 $this->expectExceptionMessage('Test'); |
Chris@0 | 12 $errorHandler = new Throwing(); |
Chris@0 | 13 $errorHandler->handleError(new Error('Test')); |
Chris@0 | 14 } |
Chris@13 | 15 } |