annotate vendor/nikic/php-parser/test/PhpParser/ErrorHandler/ThrowingTest.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 129ea1e6d783
children
rev   line source
Chris@13 1 <?php declare(strict_types=1);
Chris@0 2
Chris@0 3 namespace PhpParser\ErrorHandler;
Chris@0 4
Chris@0 5 use PhpParser\Error;
Chris@0 6
Chris@17 7 class ThrowingTest extends \PHPUnit\Framework\TestCase
Chris@13 8 {
Chris@0 9 public function testHandleError() {
Chris@17 10 $this->expectException(Error::class);
Chris@17 11 $this->expectExceptionMessage('Test');
Chris@0 12 $errorHandler = new Throwing();
Chris@0 13 $errorHandler->handleError(new Error('Test'));
Chris@0 14 }
Chris@13 15 }