Mercurial > hg > isophonics-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
1 <?php declare(strict_types=1); | 1 <?php declare(strict_types=1); |
2 | 2 |
3 namespace PhpParser\ErrorHandler; | 3 namespace PhpParser\ErrorHandler; |
4 | 4 |
5 use PhpParser\Error; | 5 use PhpParser\Error; |
6 use PHPUnit\Framework\TestCase; | |
7 | 6 |
8 class ThrowingTest extends TestCase | 7 class ThrowingTest extends \PHPUnit\Framework\TestCase |
9 { | 8 { |
10 /** | |
11 * @expectedException \PhpParser\Error | |
12 * @expectedExceptionMessage Test | |
13 */ | |
14 public function testHandleError() { | 9 public function testHandleError() { |
10 $this->expectException(Error::class); | |
11 $this->expectExceptionMessage('Test'); | |
15 $errorHandler = new Throwing(); | 12 $errorHandler = new Throwing(); |
16 $errorHandler->handleError(new Error('Test')); | 13 $errorHandler->handleError(new Error('Test')); |
17 } | 14 } |
18 } | 15 } |