From ff45ebc100f4b3c67eb24e15677904e8d8954590 Mon Sep 17 00:00:00 2001 From: Helmut Hummel <helmut.hummel@typo3.org> Date: Thu, 8 Oct 2015 12:25:15 +0200 Subject: [PATCH] [BUGFIX] Fix http_request2 and add test to verify that. 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 | 3 +- composer.lock | 2 +- .../core/Tests/Unit/Http/HttpRequestTest.php | 30 +++++++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 typo3/sysext/core/Tests/Unit/Http/HttpRequestTest.php diff --git a/composer.json b/composer.json index 97136ff4ab28..e423d967ee52 100644 --- a/composer.json +++ b/composer.json @@ -217,6 +217,7 @@ "classmap": ["typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/"] }, "include-path": [ - "vendor/pear/http_request2/" + "vendor/pear/http_request2/", + "vendor/pear/net_url2/" ] } diff --git a/composer.lock b/composer.lock index ef9aef015bcd..f1e8578c12e3 100644 --- a/composer.lock +++ b/composer.lock @@ -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 index 000000000000..a3e1a6ba19b1 --- /dev/null +++ b/typo3/sysext/core/Tests/Unit/Http/HttpRequestTest.php @@ -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()); + } +} -- GitLab