Files
c-cms-legacy/vendor/nikic/php-parser/test/PhpParser/ErrorHandler/ThrowingTest.php
Mathieu Lagace 5fa3c85b97 Include Vendor
2018-06-27 20:31:54 -04:00

19 lines
399 B
PHP

<?php declare(strict_types=1);
namespace PhpParser\ErrorHandler;
use PhpParser\Error;
use PHPUnit\Framework\TestCase;
class ThrowingTest extends TestCase
{
/**
* @expectedException \PhpParser\Error
* @expectedExceptionMessage Test
*/
public function testHandleError() {
$errorHandler = new Throwing();
$errorHandler->handleError(new Error('Test'));
}
}