diff options
Diffstat (limited to 'vendor/nikic/php-parser/test/PhpParser/ErrorHandler/ThrowingTest.php')
-rw-r--r-- | vendor/nikic/php-parser/test/PhpParser/ErrorHandler/ThrowingTest.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/nikic/php-parser/test/PhpParser/ErrorHandler/ThrowingTest.php b/vendor/nikic/php-parser/test/PhpParser/ErrorHandler/ThrowingTest.php new file mode 100644 index 0000000..d7df7c2 --- /dev/null +++ b/vendor/nikic/php-parser/test/PhpParser/ErrorHandler/ThrowingTest.php @@ -0,0 +1,16 @@ +<?php + +namespace PhpParser\ErrorHandler; + +use PhpParser\Error; + +class ThrowingTest extends \PHPUnit_Framework_TestCase { + /** + * @expectedException \PhpParser\Error + * @expectedExceptionMessage Test + */ + public function testHandleError() { + $errorHandler = new Throwing(); + $errorHandler->handleError(new Error('Test')); + } +}
\ No newline at end of file |