1<?php declare(strict_types=1);
2
3namespace PhpParser\ErrorHandler;
4
5use PhpParser\Error;
6
7class ThrowingTest extends \PHPUnit\Framework\TestCase {
8    public function testHandleError(): void {
9        $this->expectException(Error::class);
10        $this->expectExceptionMessage('Test');
11        $errorHandler = new Throwing();
12        $errorHandler->handleError(new Error('Test'));
13    }
14}
15