Soeren.oldag has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/215300

Change subject: Another fix for php 5.3.
......................................................................

Another fix for php 5.3.

Change-Id: Ie1e6eb3cebb1df87c1d5c32815ddd0063507870d
---
M tests/phpunit/WikibaseQualityFactoryTest.php
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikidataQuality 
refs/changes/00/215300/1

diff --git a/tests/phpunit/WikibaseQualityFactoryTest.php 
b/tests/phpunit/WikibaseQualityFactoryTest.php
index fc3dbb6..a1010f6 100644
--- a/tests/phpunit/WikibaseQualityFactoryTest.php
+++ b/tests/phpunit/WikibaseQualityFactoryTest.php
@@ -41,8 +41,9 @@
     }
 
     public function testGetDispatchingViolationContext() {
-        $GLOBALS['wbqViolationContexts'][] = function() {
-            return $this->getMockForAbstractClass( 
'WikibaseQuality\Violations\ViolationContext' );
+        $mock = $this->getMockForAbstractClass( 
'WikibaseQuality\Violations\ViolationContext' );
+        $GLOBALS['wbqViolationContexts'][] = function() use ( $mock ) {
+            return $mock;
         };
         $violationFormatter = 
$this->getFactory()->getDispatchingViolationContext();
 

-- 
To view, visit https://gerrit.wikimedia.org/r/215300
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie1e6eb3cebb1df87c1d5c32815ddd0063507870d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikidataQuality
Gerrit-Branch: master
Gerrit-Owner: Soeren.oldag <soeren_ol...@freenet.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to