[TASK] Shorten the extend class in all unit tests
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Http / ServerRequestTest.php
index 8b1aa95..9460e40 100644 (file)
@@ -17,13 +17,14 @@ namespace TYPO3\CMS\Core\Tests\Unit\Http;
 use TYPO3\CMS\Core\Http\ServerRequest;
 use TYPO3\CMS\Core\Http\UploadedFile;
 use TYPO3\CMS\Core\Http\Uri;
+use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
 
 /**
  * Testcase for \TYPO3\CMS\Core\Http\ServerRequest
  *
  * Adapted from https://github.com/phly/http/
  */
-class ServerRequestTest extends \TYPO3\Components\TestingFramework\Core\Unit\UnitTestCase
+class ServerRequestTest extends UnitTestCase
 {
     /**
      * @var ServerRequest
@@ -117,7 +118,6 @@ class ServerRequestTest extends \TYPO3\Components\TestingFramework\Core\Unit\Uni
     }
 
     /**
-     * @depends testAttributesAreEmptyByDefault
      * @test
      */
     public function withAttributeMutatorReturnsCloneWithChanges()
@@ -130,11 +130,11 @@ class ServerRequestTest extends \TYPO3\Components\TestingFramework\Core\Unit\Uni
     }
 
     /**
-     * @depends testAttributeMutatorReturnsCloneWithChanges
      * @test
      */
-    public function withoutAttributeReturnsCloneWithoutAttribute($request)
+    public function withoutAttributeReturnsCloneWithoutAttribute()
     {
+        $request = $this->request;
         $new = $request->withoutAttribute('foo');
         $this->assertNotSame($request, $new);
         $this->assertNull($new->getAttribute('foo', null));