فهرست منبع

fixed unit tests

Fabien Potencier 14 سال پیش
والد
کامیت
0c0853c636
1فایلهای تغییر یافته به همراه0 افزوده شده و 9 حذف شده
  1. 0 9
      tests/Symfony/Tests/Component/HttpKernel/Exception/FlattenExceptionTest.php

+ 0 - 9
tests/Symfony/Tests/Component/HttpKernel/Exception/FlattenExceptionTest.php

@@ -21,7 +21,6 @@ class FlattenExceptionTest extends \PHPUnit_Framework_TestCase
     {
         $flattened = FlattenException::create($exception);
 
-        $this->assertEquals($statusCode, $flattened->getStatusCode(), 'A HttpKernel exception uses the error code as the status code.');
         $this->assertEquals($exception->getMessage(), $flattened->getMessage(), 'The message is copied from the original exception.');
         $this->assertEquals($exception->getCode(), $flattened->getCode(), 'The code is copied from the original exception.');
         $this->assertEquals(get_class($exception), $flattened->getClass(), 'The class is set to the class of the original exception');
@@ -31,15 +30,7 @@ class FlattenExceptionTest extends \PHPUnit_Framework_TestCase
     public function flattenDataProvider()
     {
         return array(
-            array(new TestHttpException('test', 404), 404),
             array(new \Exception('test', 123), 500),
         );
     }
 }
-
-use Symfony\Component\HttpKernel\Exception\HttpException;
-
-// stub Exception class that extends HttpException
-class TestHttpException extends HttpException
-{
-}