3 namespace PhpParser\ErrorHandler;
7 class ThrowingTest extends \PHPUnit_Framework_TestCase {
9 * @expectedException \PhpParser\Error
10 * @expectedExceptionMessage Test
12 public function testHandleError() {
13 $errorHandler = new Throwing();
14 $errorHandler->handleError(new Error('Test'));