From: Timo Tijhof Date: Wed, 15 Oct 2014 01:45:51 +0000 (+0200) Subject: RequestContextTest: Distinguish initial test from restored test X-Git-Tag: 1.31.0-rc.0~13605 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=155c8de216a53776ad1912215c7b15ff9eefd442;p=lhc%2Fweb%2Fwiklou.git RequestContextTest: Distinguish initial test from restored test Follows-up f31a046. In failure it's hard to see whether it's the first or third group of assertions as they were carying the same name. Change-Id: I5891754342400155759e797337f8509d4eca39ec --- diff --git a/tests/phpunit/includes/RequestContextTest.php b/tests/phpunit/includes/RequestContextTest.php index cae0e52ef5..a9e5be2493 100644 --- a/tests/phpunit/includes/RequestContextTest.php +++ b/tests/phpunit/includes/RequestContextTest.php @@ -88,9 +88,9 @@ class RequestContextTest extends MediaWikiTestCase { unset( $sc ); // restore previous context $info = $context->exportSession(); - $this->assertEquals( $oInfo['ip'], $info['ip'], "Correct initial IP address." ); - $this->assertEquals( $oInfo['headers'], $info['headers'], "Correct initial headers." ); - $this->assertEquals( $oInfo['sessionId'], $info['sessionId'], "Correct initial session ID." ); - $this->assertEquals( $oInfo['userId'], $info['userId'], "Correct initial user ID." ); + $this->assertEquals( $oInfo['ip'], $info['ip'], "Correct restored IP address." ); + $this->assertEquals( $oInfo['headers'], $info['headers'], "Correct restored headers." ); + $this->assertEquals( $oInfo['sessionId'], $info['sessionId'], "Correct restored session ID." ); + $this->assertEquals( $oInfo['userId'], $info['userId'], "Correct restored user ID." ); } }