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 "Fix sessionfailure i18n message during authentication"
[lhc/web/wiklou.git]
/
tests
/
integration
/
includes
/
http
/
MWHttpRequestTestCase.php
diff --git
a/tests/integration/includes/http/MWHttpRequestTestCase.php
b/tests/integration/includes/http/MWHttpRequestTestCase.php
index
81473df
..
cc769d7
100644
(file)
--- a/
tests/integration/includes/http/MWHttpRequestTestCase.php
+++ b/
tests/integration/includes/http/MWHttpRequestTestCase.php
@@
-2,7
+2,7
@@
use Wikimedia\TestingAccessWrapper;
use Wikimedia\TestingAccessWrapper;
-class MWHttpRequestTestCase extends PHPUnit_Framework_TestCase {
+
abstract
class MWHttpRequestTestCase extends PHPUnit_Framework_TestCase {
protected static $httpEngine;
protected $oldHttpEngine;
protected static $httpEngine;
protected $oldHttpEngine;
@@
-195,6
+195,11
@@
class MWHttpRequestTestCase extends PHPUnit_Framework_TestCase {
$this->assertSame( 401, $request->getStatus() );
}
$this->assertSame( 401, $request->getStatus() );
}
+ public function testFactoryDefaults() {
+ $request = MWHttpRequest::factory( 'http://acme.test' );
+ $this->assertInstanceOf( MWHttpRequest::class, $request );
+ }
+
// --------------------
/**
// --------------------
/**
@@
-242,4
+247,5
@@
class MWHttpRequestTestCase extends PHPUnit_Framework_TestCase {
$this->assertArrayNotHasKey( strtolower( $name ),
array_change_key_case( $cookieJar->cookie, CASE_LOWER ) );
}
$this->assertArrayNotHasKey( strtolower( $name ),
array_change_key_case( $cookieJar->cookie, CASE_LOWER ) );
}
+
}
}