D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
api
/
vendor
/
nikic
/
php-parser
/
test
/
PhpParser
/
ErrorHandler
/
Filename :
ThrowingTest.php
back
Copy
<?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')); } }