[BUGFIX] Fix HttpRequest instantiation 98/38898/6
authorMathias Brodala <mbrodala@pagemachine.de>
Fri, 24 Apr 2015 11:47:40 +0000 (13:47 +0200)
committerAndreas Wolf <andreas.wolf@typo3.org>
Wed, 29 Jul 2015 09:30:14 +0000 (11:30 +0200)
This was fixed upstream but a new release was not
published yet, thus we temporarily require the commit
with the fix.

See https://github.com/pear/HTTP_Request2/pull/11

Resolves: #67838
Releases: master
Change-Id: Ie0dafce224c1ff4ee12587c503cfb649fbc8fd73
Reviewed-on: http://review.typo3.org/38898
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
composer.json
composer.lock
typo3/sysext/core/Tests/Unit/Http/HttpRequestTest.php [new file with mode: 0644]

index 6ea5135..1d2608a 100644 (file)
@@ -34,7 +34,7 @@
                "ext-session": "*",
                "ext-xml": "*",
                "psr/log": "1.0.*@dev",
-               "pear/http_request2": "~2.2.1",
+               "pear/http_request2": "dev-trunk#674ca38c44e0da062799bde776751424f754d0bc",
                "phpwhois/idna-convert": "~0.8.2",
                "swiftmailer/swiftmailer": "~5.4.1",
                "symfony/console": "~2.5.11",
index 44227dc..a60e51c 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": "c09697f76edc6e21f5e7ba1157a9fabc",
+    "hash": "6caf13fd33cb4b362af8e5742039110e",
     "packages": [
         {
             "name": "doctrine/instantiator",
         },
         {
             "name": "pear/http_request2",
-            "version": "v2.2.1",
+            "version": "dev-trunk",
             "source": {
                 "type": "git",
                 "url": "https://github.com/pear/HTTP_Request2.git",
-                "reference": "d6c81670c504045248c1afdf896bb9a3288158de"
+                "reference": "674ca38c44e0da062799bde776751424f754d0bc"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/pear/HTTP_Request2/zipball/d6c81670c504045248c1afdf896bb9a3288158de",
-                "reference": "d6c81670c504045248c1afdf896bb9a3288158de",
+                "url": "https://api.github.com/repos/pear/HTTP_Request2/zipball/f36670a10bb9586d0e5f9d291f979cb6c8f94bfc",
+                "reference": "674ca38c44e0da062799bde776751424f754d0bc",
                 "shasum": ""
             },
             "require": {
-                "pear/net_url2": ">=2.0.0",
+                "pear/net_url2": "~2.2.0",
                 "pear/pear_exception": "*",
                 "php": ">=5.2.0"
             },
                 }
             },
             "notification-url": "https://packagist.org/downloads/",
+            "include-path": [
+                "./"
+            ],
             "license": [
                 "BSD-3-Clause"
             ],
             "authors": [
                 {
                     "name": "Alexey Borzov",
-                    "email": "avb@php.net",
-                    "role": "Developer HTML_Common2"
+                    "email": "avb@php.net"
                 }
             ],
             "description": "Provides an easy way to perform HTTP requests.",
                 "http",
                 "request"
             ],
-            "time": "2014-01-16 17:27:21"
+            "time": "2015-06-20 11:45:01"
         },
         {
             "name": "pear/net_url2",
     "minimum-stability": "stable",
     "stability-flags": {
         "psr/log": 20,
+        "pear/http_request2": 20,
         "mikey179/vfsstream": 20
     },
     "prefer-stable": false,
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..bdb1acb
--- /dev/null
@@ -0,0 +1,32 @@
+<?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 canBeInstantiated() {
+               $this->getMockBuilder('TYPO3\CMS\Core\Http\HttpRequest')
+                       ->disableOriginalConstructor()
+                       ->getMock();
+       }
+}