Skip to content

Instantly share code, notes, and snippets.

@mwjames
Created February 29, 2016 04:23
Show Gist options
  • Save mwjames/13f7209bafeb2322d8ff to your computer and use it in GitHub Desktop.
Save mwjames/13f7209bafeb2322d8ff to your computer and use it in GitHub Desktop.
chameleon - phpunit failures
$ composer phpunit
> php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist
PHPUnit already present
Using PHP 5.6.8
Using the MediaWiki vendor autoloader ...
PHPUnit 4.8.23 by Sebastian Bergmann and contributors.
Runtime: PHP 5.6.8
Configuration: D:\xampp\htdocs\mw-core\skins\chameleon\phpunit.xml.dist
............................................................... 63 / 273 ( 23%)
............................................................... 126 / 273 ( 46%)
............................................................... 189 / 273 ( 69%)
............................................................... 252 / 273 ( 92%)
............FFFFFF...
Time: 22.59 seconds, Memory: 43.50Mb
There were 6 failures:
1) Skins\Chameleon\Tests\Unit\Hooks\SetupAfterCacheTest::testProcessWithLateSettingsToAdjustConfiguration with data set #0 (a
rray(), array())
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 'chameleonLocalPath' => 'notTestingwgStyleDirectory/chameleon'
+ 'chameleonLocalPath' => 'notTestingwgStyleDirectory\chameleon'
'chameleonRemotePath' => 'notTestingwgStylePath/chameleon'
'wgResourceModules' => Array (
'skin.chameleon.jquery-sticky' => Array (
- 'localBasePath' => 'notTestingwgStyleDirectory/chameleon/resources/js'
+ 'localBasePath' => 'notTestingwgStyleDirectory\chameleon/resources/js'
'remoteBasePath' => 'notTestingwgStylePath/chamele...ces/js'
'group' => 'skin.chameleon'
'skinScripts' => Array (...)
)
)
'IP' => 'd:/xampp/htdocs/mw-core/skins...\../..'
'wgScriptPath' => 'notTestingwgScriptPath'
'wgStylePath' => 'notTestingwgStylePath'
'wgStyleDirectory' => 'notTestingwgStyleDirectory'
)
D:\xampp\htdocs\mw-core\skins\chameleon\tests\phpunit\Unit\Hooks\SetupAfterCacheTest.php:403
2) Skins\Chameleon\Tests\Unit\Hooks\SetupAfterCacheTest::testProcessWithLateSettingsToAdjustConfiguration with data set #1 (a
rray(array()), array(array()))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
'wgVisualEditorSupportedSkins' => Array ()
- 'chameleonLocalPath' => 'notTestingwgStyleDirectory/chameleon'
+ 'chameleonLocalPath' => 'notTestingwgStyleDirectory\chameleon'
'chameleonRemotePath' => 'notTestingwgStylePath/chameleon'
'wgResourceModules' => Array (
'skin.chameleon.jquery-sticky' => Array (
- 'localBasePath' => 'notTestingwgStyleDirectory/chameleon/resources/js'
+ 'localBasePath' => 'notTestingwgStyleDirectory\chameleon/resources/js'
'remoteBasePath' => 'notTestingwgStylePath/chamele...ces/js'
'group' => 'skin.chameleon'
'skinScripts' => Array (...)
)
)
'IP' => 'd:/xampp/htdocs/mw-core/skins...\../..'
'wgScriptPath' => 'notTestingwgScriptPath'
'wgStylePath' => 'notTestingwgStylePath'
'wgStyleDirectory' => 'notTestingwgStyleDirectory'
)
D:\xampp\htdocs\mw-core\skins\chameleon\tests\phpunit\Unit\Hooks\SetupAfterCacheTest.php:403
3) Skins\Chameleon\Tests\Unit\Hooks\SetupAfterCacheTest::testProcessWithLateSettingsToAdjustConfiguration with data set #2 (a
rray(true), array(true))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
'egChameleonEnableVisualEditor' => true
- 'chameleonLocalPath' => 'notTestingwgStyleDirectory/chameleon'
+ 'chameleonLocalPath' => 'notTestingwgStyleDirectory\chameleon'
'chameleonRemotePath' => 'notTestingwgStylePath/chameleon'
'wgResourceModules' => Array (
'skin.chameleon.jquery-sticky' => Array (
- 'localBasePath' => 'notTestingwgStyleDirectory/chameleon/resources/js'
+ 'localBasePath' => 'notTestingwgStyleDirectory\chameleon/resources/js'
'remoteBasePath' => 'notTestingwgStylePath/chamele...ces/js'
'group' => 'skin.chameleon'
'skinScripts' => Array (...)
)
)
'IP' => 'd:/xampp/htdocs/mw-core/skins...\../..'
'wgScriptPath' => 'notTestingwgScriptPath'
'wgStylePath' => 'notTestingwgStylePath'
'wgStyleDirectory' => 'notTestingwgStyleDirectory'
)
D:\xampp\htdocs\mw-core\skins\chameleon\tests\phpunit\Unit\Hooks\SetupAfterCacheTest.php:403
4) Skins\Chameleon\Tests\Unit\Hooks\SetupAfterCacheTest::testProcessWithLateSettingsToAdjustConfiguration with data set #3 (a
rray(true, array('foo')), array(true, array('foo', 'chameleon')))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
'egChameleonEnableVisualEditor' => true
'wgVisualEditorSupportedSkins' => Array (...)
- 'chameleonLocalPath' => 'notTestingwgStyleDirectory/chameleon'
+ 'chameleonLocalPath' => 'notTestingwgStyleDirectory\chameleon'
'chameleonRemotePath' => 'notTestingwgStylePath/chameleon'
'wgResourceModules' => Array (
'skin.chameleon.jquery-sticky' => Array (
- 'localBasePath' => 'notTestingwgStyleDirectory/chameleon/resources/js'
+ 'localBasePath' => 'notTestingwgStyleDirectory\chameleon/resources/js'
'remoteBasePath' => 'notTestingwgStylePath/chamele...ces/js'
'group' => 'skin.chameleon'
'skinScripts' => Array (...)
)
)
'IP' => 'd:/xampp/htdocs/mw-core/skins...\../..'
'wgScriptPath' => 'notTestingwgScriptPath'
'wgStylePath' => 'notTestingwgStylePath'
'wgStyleDirectory' => 'notTestingwgStyleDirectory'
)
D:\xampp\htdocs\mw-core\skins\chameleon\tests\phpunit\Unit\Hooks\SetupAfterCacheTest.php:403
5) Skins\Chameleon\Tests\Unit\Hooks\SetupAfterCacheTest::testProcessWithLateSettingsToAdjustConfiguration with data set #4 (a
rray(true, array('foo', 'chameleon')), array(true, array('foo', 'chameleon')))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
'egChameleonEnableVisualEditor' => true
'wgVisualEditorSupportedSkins' => Array (...)
- 'chameleonLocalPath' => 'notTestingwgStyleDirectory/chameleon'
+ 'chameleonLocalPath' => 'notTestingwgStyleDirectory\chameleon'
'chameleonRemotePath' => 'notTestingwgStylePath/chameleon'
'wgResourceModules' => Array (
'skin.chameleon.jquery-sticky' => Array (
- 'localBasePath' => 'notTestingwgStyleDirectory/chameleon/resources/js'
+ 'localBasePath' => 'notTestingwgStyleDirectory\chameleon/resources/js'
'remoteBasePath' => 'notTestingwgStylePath/chamele...ces/js'
'group' => 'skin.chameleon'
'skinScripts' => Array (...)
)
)
'IP' => 'd:/xampp/htdocs/mw-core/skins...\../..'
'wgScriptPath' => 'notTestingwgScriptPath'
'wgStylePath' => 'notTestingwgStylePath'
'wgStyleDirectory' => 'notTestingwgStyleDirectory'
)
D:\xampp\htdocs\mw-core\skins\chameleon\tests\phpunit\Unit\Hooks\SetupAfterCacheTest.php:403
6) Skins\Chameleon\Tests\Unit\Hooks\SetupAfterCacheTest::testProcessWithLateSettingsToAdjustConfiguration with data set #5 (a
rray(false, array('chameleon', 'chameleon', 'foo')), array(false, array('foo')))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
'egChameleonEnableVisualEditor' => false
'wgVisualEditorSupportedSkins' => Array (...)
- 'chameleonLocalPath' => 'notTestingwgStyleDirectory/chameleon'
+ 'chameleonLocalPath' => 'notTestingwgStyleDirectory\chameleon'
'chameleonRemotePath' => 'notTestingwgStylePath/chameleon'
'wgResourceModules' => Array (
'skin.chameleon.jquery-sticky' => Array (
- 'localBasePath' => 'notTestingwgStyleDirectory/chameleon/resources/js'
+ 'localBasePath' => 'notTestingwgStyleDirectory\chameleon/resources/js'
'remoteBasePath' => 'notTestingwgStylePath/chamele...ces/js'
'group' => 'skin.chameleon'
'skinScripts' => Array (...)
)
)
'IP' => 'd:/xampp/htdocs/mw-core/skins...\../..'
'wgScriptPath' => 'notTestingwgScriptPath'
'wgStylePath' => 'notTestingwgStylePath'
'wgStyleDirectory' => 'notTestingwgStyleDirectory'
)
D:\xampp\htdocs\mw-core\skins\chameleon\tests\phpunit\Unit\Hooks\SetupAfterCacheTest.php:403
FAILURES!
Tests: 273, Assertions: 333, Failures: 6.
Script php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist handling the phpunit event returned with an error
[RuntimeException]
Error Output:
phpunit [--dev] [--no-dev] [--] [<args>]...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment