dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Http::getProxy() method to get proxy configuration"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
HttpTest.php
diff --git
a/tests/phpunit/includes/HttpTest.php
b/tests/phpunit/includes/HttpTest.php
index
f380696
..
4c2e02b
100644
(file)
--- a/
tests/phpunit/includes/HttpTest.php
+++ b/
tests/phpunit/includes/HttpTest.php
@@
-62,6
+62,17
@@
class HttpTest extends MediaWikiTestCase {
);
}
);
}
+ /**
+ * @covers Http::getProxy
+ */
+ public function testGetProxy() {
+ $this->setMwGlobals( 'wgHTTPProxy', 'proxy.domain.tld' );
+ $this->assertEquals(
+ 'proxy.domain.tld',
+ Http::getProxy()
+ );
+ }
+
/**
* Feeds URI to test a long regular expression in Http::isValidURI
*/
/**
* Feeds URI to test a long regular expression in Http::isValidURI
*/