Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/test/PhpParser/ErrorHandler/ThrowingTest.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 5fb285c0d0e3 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace PhpParser\ErrorHandler; | |
4 | |
5 use PhpParser\Error; | |
6 | |
7 class ThrowingTest extends \PHPUnit_Framework_TestCase { | |
8 /** | |
9 * @expectedException \PhpParser\Error | |
10 * @expectedExceptionMessage Test | |
11 */ | |
12 public function testHandleError() { | |
13 $errorHandler = new Throwing(); | |
14 $errorHandler->handleError(new Error('Test')); | |
15 } | |
16 } |