From 155c8de216a53776ad1912215c7b15ff9eefd442 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Wed, 15 Oct 2014 03:45:51 +0200 Subject: [PATCH] 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 --- tests/phpunit/includes/RequestContextTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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." ); } } -- 2.20.1