mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-02-22 09:52:39 +01:00
15 lines
382 B
PHP
15 lines
382 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace PhpParser\ErrorHandler;
|
|
|
|
use PhpParser\Error;
|
|
|
|
class ThrowingTest extends \PHPUnit\Framework\TestCase {
|
|
public function testHandleError() {
|
|
$this->expectException(Error::class);
|
|
$this->expectExceptionMessage('Test');
|
|
$errorHandler = new Throwing();
|
|
$errorHandler->handleError(new Error('Test'));
|
|
}
|
|
}
|