diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2023-04-24 21:49:42 +0200 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2023-04-24 21:52:32 +0200 |
commit | 4a1479c9cc78f5f8acbb8991ad2af29a0ba302a3 (patch) | |
tree | 789cd2947d44bd20734ab3fe4cc17099e26b4df9 /tests/phpunit/includes/http/HttpTest.php | |
parent | 4bd94b22e3ca4bdb9dc94a30db5ae12194f70d56 (diff) | |
download | mediawikicore-4a1479c9cc78f5f8acbb8991ad2af29a0ba302a3.tar.gz mediawikicore-4a1479c9cc78f5f8acbb8991ad2af29a0ba302a3.zip |
Remove deprecated class Http
The class and all functions are deprecated:
- Http::request()
- Http::get()
- Http::post()
- Http::userAgent()
- Http::isValidURI()
- Http::getProxy()
- Http::createMultiClient()
Bug: T305813
Change-Id: Icd8af4822b16b4bf4558b756e20171c3ae9a9fa1
Diffstat (limited to 'tests/phpunit/includes/http/HttpTest.php')
-rw-r--r-- | tests/phpunit/includes/http/HttpTest.php | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/phpunit/includes/http/HttpTest.php b/tests/phpunit/includes/http/HttpTest.php deleted file mode 100644 index 8d862b31e168..000000000000 --- a/tests/phpunit/includes/http/HttpTest.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php - -use MediaWiki\MainConfigNames; - -/** - * @covers Http - * @group Http - * @group small - */ -class HttpTest extends MediaWikiIntegrationTestCase { - - /** - * @covers Http::getProxy - */ - public function testGetProxy() { - $this->hideDeprecated( 'Http::getProxy' ); - - $this->overrideConfigValue( MainConfigNames::HTTPProxy, false ); - $this->assertSame( - '', - Http::getProxy(), - 'default setting' - ); - - $this->overrideConfigValue( MainConfigNames::HTTPProxy, 'proxy.domain.tld' ); - $this->assertEquals( - 'proxy.domain.tld', - Http::getProxy() - ); - } - -} |