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 "FauxRequest: don’t override getValues()"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
http
/
GuzzleHttpRequestTest.php
diff --git
a/tests/phpunit/includes/http/GuzzleHttpRequestTest.php
b/tests/phpunit/includes/http/GuzzleHttpRequestTest.php
index
c9356b6
..
ff0a9eb
100644
(file)
--- a/
tests/phpunit/includes/http/GuzzleHttpRequestTest.php
+++ b/
tests/phpunit/includes/http/GuzzleHttpRequestTest.php
@@
-109,7
+109,7
@@
class GuzzleHttpRequestTest extends MediaWikiTestCase {
$s = $r->execute();
$errorMsg = $s->getErrorsByType( 'error' )[0]['message'];
$s = $r->execute();
$errorMsg = $s->getErrorsByType( 'error' )[0]['message'];
- $this->assert
Equals
( 0, $r->getStatus() );
+ $this->assert
Same
( 0, $r->getStatus() );
$this->assertEquals( 'http-invalid-url', $errorMsg );
}
$this->assertEquals( 'http-invalid-url', $errorMsg );
}
@@
-121,7
+121,7
@@
class GuzzleHttpRequestTest extends MediaWikiTestCase {
$s = $r->execute();
$errorMsg = $s->getErrorsByType( 'error' )[0]['message'];
$s = $r->execute();
$errorMsg = $s->getErrorsByType( 'error' )[0]['message'];
- $this->assert
Equals
( 0, $r->getStatus() );
+ $this->assert
Same
( 0, $r->getStatus() );
$this->assertEquals( 'http-request-error', $errorMsg );
}
$this->assertEquals( 'http-request-error', $errorMsg );
}
@@
-133,7
+133,7
@@
class GuzzleHttpRequestTest extends MediaWikiTestCase {
$s = $r->execute();
$errorMsg = $s->getErrorsByType( 'error' )[0]['message'];
$s = $r->execute();
$errorMsg = $s->getErrorsByType( 'error' )[0]['message'];
- $this->assert
Equals
( 0, $r->getStatus() );
+ $this->assert
Same
( 0, $r->getStatus() );
$this->assertEquals( 'http-timed-out', $errorMsg );
}
$this->assertEquals( 'http-timed-out', $errorMsg );
}