소스 검색

[HttpKernel] fixed test

Fabien Potencier 14 년 전
부모
커밋
1a486492b8
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      tests/Symfony/Tests/Component/HttpKernel/Debug/ExceptionListenerTest.php

+ 1 - 2
tests/Symfony/Tests/Component/HttpKernel/Debug/ExceptionListenerTest.php

@@ -13,7 +13,6 @@ namespace Symfony\Tests\Component\HttpKernel\Debug;
 
 use Symfony\Component\HttpKernel\HttpKernelInterface;
 use Symfony\Component\HttpKernel\Debug\ExceptionListener;
-use Symfony\Component\HttpKernel\Debug\ErrorException;
 use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
 use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
 use Symfony\Component\HttpFoundation\Request;
@@ -90,7 +89,7 @@ class ExceptionListenerTest extends \PHPUnit_Framework_TestCase
     public function provider()
     {
         $request = new Request();
-        $exception = new ErrorException('foo');
+        $exception = new \Exception('foo');
         $event = new GetResponseForExceptionEvent(new TestKernel(), $request, 'foo', $exception);
         $event2 = new GetResponseForExceptionEvent(new TestKernelThatThrowsException(), $request, 'foo', $exception);