[BUGFIX] Fix http_request2 and add test to verify that. 23/42323/5
authorHelmut Hummel <helmut.hummel@typo3.org>
Thu, 8 Oct 2015 10:25:15 +0000 (12:25 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 8 Oct 2015 10:59:47 +0000 (12:59 +0200)
Resolves: #70492
Releases: master
Change-Id: Ic17d7c3a86fecccbdc929fbd51c2534d4f3f19bb
Reviewed-on: http://review.typo3.org/42323
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
composer.json
composer.lock
typo3/sysext/core/Tests/Unit/Http/HttpRequestTest.php [new file with mode: 0644]

index 97136ff..e423d96 100644 (file)
                "classmap": ["typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/"]
        },
        "include-path": [
-               "vendor/pear/http_request2/"
+               "vendor/pear/http_request2/",
+               "vendor/pear/net_url2/"
        ]
 }
index ef9aef0..f1e8578 100644 (file)
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
         "This file is @generated automatically"
     ],
-    "hash": "abe3f508408be07e42aa435fb92c836b",
+    "hash": "e849bfdd07351089ccc5dfc6c0a9bdf2",
     "packages": [
         {
             "name": "cogpowered/finediff",
diff --git a/typo3/sysext/core/Tests/Unit/Http/HttpRequestTest.php b/typo3/sysext/core/Tests/Unit/Http/HttpRequestTest.php
new file mode 100644 (file)
index 0000000..a3e1a6b
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+namespace TYPO3\CMS\Core\Tests\Unit\Html;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use TYPO3\CMS\Core\Tests\UnitTestCase;
+
+/**
+ * Testcase for \TYPO3\CMS\Core\Http\HttpRequest
+ */
+class HttpRequestTest extends UnitTestCase {
+
+       /**
+        * @test
+        */
+       public function pearLibraryCanBeInstantiated() {
+               $this->assertInstanceOf('HTTP_Request2', new \HTTP_Request2());
+       }
+}