Merge "Type hint against LinkTarget in WatchedItemStore"
[lhc/web/wiklou.git] / tests / phpunit / includes / http / HttpTest.php
1 <?php
2
3 /**
4 * @covers Http
5 * @group Http
6 * @group small
7 */
8 class HttpTest extends MediaWikiTestCase {
9
10 /**
11 * @covers Http::getProxy
12 */
13 public function testGetProxy() {
14 $this->hideDeprecated( 'Http::getProxy' );
15
16 $this->setMwGlobals( 'wgHTTPProxy', false );
17 $this->assertEquals(
18 '',
19 Http::getProxy(),
20 'default setting'
21 );
22
23 $this->setMwGlobals( 'wgHTTPProxy', 'proxy.domain.tld' );
24 $this->assertEquals(
25 'proxy.domain.tld',
26 Http::getProxy()
27 );
28 }
29
30 }