X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fphpunit%2Fincludes%2Fhttp%2FGuzzleHttpRequestTest.php;h=ff0a9eb0bc87e951c38368d75c49fd1cb5c227a5;hb=af80076034fb734d652eb043c523c1d8df974e51;hp=c9356b6b1017714b7f5dfb358e09f86a21dac7b2;hpb=3a026473873ac3cc9d5c181f05961f474495d32c;p=lhc%2Fweb%2Fwiklou.git 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 ); }