X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fhttp%2FGuzzleHttpRequestTest.php;h=ff0a9eb0bc87e951c38368d75c49fd1cb5c227a5;hp=c9356b6b1017714b7f5dfb358e09f86a21dac7b2;hb=af80076034fb734d652eb043c523c1d8df974e51;hpb=390f206158028609fab6c94decad893033c41fd8 diff --git a/tests/phpunit/includes/http/GuzzleHttpRequestTest.php b/tests/phpunit/includes/http/GuzzleHttpRequestTest.php index c9356b6b10..ff0a9eb0bc 100644 --- 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']; - $this->assertEquals( 0, $r->getStatus() ); + $this->assertSame( 0, $r->getStatus() ); $this->assertEquals( 'http-invalid-url', $errorMsg ); } @@ -121,7 +121,7 @@ class GuzzleHttpRequestTest extends MediaWikiTestCase { $s = $r->execute(); $errorMsg = $s->getErrorsByType( 'error' )[0]['message']; - $this->assertEquals( 0, $r->getStatus() ); + $this->assertSame( 0, $r->getStatus() ); $this->assertEquals( 'http-request-error', $errorMsg ); } @@ -133,7 +133,7 @@ class GuzzleHttpRequestTest extends MediaWikiTestCase { $s = $r->execute(); $errorMsg = $s->getErrorsByType( 'error' )[0]['message']; - $this->assertEquals( 0, $r->getStatus() ); + $this->assertSame( 0, $r->getStatus() ); $this->assertEquals( 'http-timed-out', $errorMsg ); }