菜谱项目

ThrowingTest.php 360B

12345678910111213141516
  1. <?php
  2. namespace PhpParser\ErrorHandler;
  3. use PhpParser\Error;
  4. class ThrowingTest extends \PHPUnit_Framework_TestCase {
  5. /**
  6. * @expectedException \PhpParser\Error
  7. * @expectedExceptionMessage Test
  8. */
  9. public function testHandleError() {
  10. $errorHandler = new Throwing();
  11. $errorHandler->handleError(new Error('Test'));
  12. }
  13. }