X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FFauxResponseTest.php;h=eac56fb84160a2e1bae8d7aad954b8d8eea4ca12;hp=85ac4ce0bc4d19f73795384c10e95b3513df2e6f;hb=17e8f7d62ec6d660c1f073efdaa0cbda68d59ae3;hpb=96906168cac0e9a7748511b48c369cf22c8406d5 diff --git a/tests/phpunit/includes/FauxResponseTest.php b/tests/phpunit/includes/FauxResponseTest.php index 85ac4ce0bc..eac56fb841 100644 --- a/tests/phpunit/includes/FauxResponseTest.php +++ b/tests/phpunit/includes/FauxResponseTest.php @@ -69,33 +69,33 @@ class FauxResponseTest extends MediaWikiTestCase { * @covers FauxResponse::header */ public function testHeader() { - $this->assertEquals( null, $this->response->getheader( 'Location' ), 'Non-existing header' ); + $this->assertEquals( null, $this->response->getHeader( 'Location' ), 'Non-existing header' ); $this->response->header( 'Location: http://localhost/' ); $this->assertEquals( 'http://localhost/', - $this->response->getheader( 'Location' ), + $this->response->getHeader( 'Location' ), 'Set header' ); $this->response->header( 'Location: http://127.0.0.1/' ); $this->assertEquals( 'http://127.0.0.1/', - $this->response->getheader( 'Location' ), + $this->response->getHeader( 'Location' ), 'Same header' ); $this->response->header( 'Location: http://127.0.0.2/', false ); $this->assertEquals( 'http://127.0.0.1/', - $this->response->getheader( 'Location' ), + $this->response->getHeader( 'Location' ), 'Same header with override disabled' ); $this->response->header( 'Location: http://localhost/' ); $this->assertEquals( 'http://localhost/', - $this->response->getheader( 'LOCATION' ), + $this->response->getHeader( 'LOCATION' ), 'Get header case insensitive' ); }