Page MenuHomePhabricator

phpunit failure: MediaWiki\Extensions\OAuth\OAuthUtilTest::testGetHeaders Failed asserting that two arrays are equal
Closed, ResolvedPublic

Description

Is this for the recent gzip changes in MediaWiki-Vagrant?

120) MediaWiki\Extensions\OAuth\OAuthUtilTest::testGetHeaders
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     'Host' => 'foo'
     'X-Whatever' => 'bar'
+    'Accept-Encoding' => ' gzip'
 )

/srv/vagrant/mediawiki/extensions/OAuth/tests/lib/OAuthUtilTest.php:166
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

Version: unspecified
Severity: normal

Details

Reference
bz68647

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:39 AM
bzimport set Reference to bz68647.
bzimport added a subscriber: Unknown Object (MLST).

Tests pass for me, assuming it is an issue with vagrant, thus removing from blocker Bug 67216 - Have unit tests of all wmf deployed extensions pass when installed together.

Bulk unassigning bugs from Ori.

bd808 claimed this task.
vagrant:/vagrant/mediawiki  (git master)
vagrant$ sudo -u www-data -- tests/phpunit/phpunit.php extensions/OAuth/tests/lib/OAuthUtilTest.php
PHPUnit 4.4.1 by Sebastian Bergmann.

Configuration read from /vagrant/mediawiki/tests/phpunit/suite.xml

......

Time: 2.23 seconds, Memory: 29.78Mb

OK (6 tests, 36 assertions)
hashar set Security to None.