From: Antoine Musso Date: Fri, 13 Jan 2012 23:26:26 +0000 (+0000) Subject: Disable MWDebug tests for now X-Git-Tag: 1.31.0-rc.0~25286 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=d7520ca7605994fd850a6ed0ba91897cf36dab10;p=lhc%2Fweb%2Fwiklou.git Disable MWDebug tests for now PHPUnit is too old on gallium so assertCount() is not recognized The other two tests are broken for an unknown reason. --- diff --git a/tests/phpunit/includes/debug/MWDebugTest.php b/tests/phpunit/includes/debug/MWDebugTest.php index e36e42fbfa..a2bbb2733c 100644 --- a/tests/phpunit/includes/debug/MWDebugTest.php +++ b/tests/phpunit/includes/debug/MWDebugTest.php @@ -7,6 +7,9 @@ class MWDebugTest extends MediaWikiTestCase { MWDebug::clearLog(); } + /** + * @group Broken + */ function testAddLog() { MWDebug::log( 'logging a string' ); $this->assertEquals( array( array( @@ -18,6 +21,9 @@ class MWDebugTest extends MediaWikiTestCase { ); } + /** + * @group Broken + */ function testAddWarning() { MWDebug::warning( 'Warning message' ); $this->assertEquals( array( array( @@ -29,6 +35,10 @@ class MWDebugTest extends MediaWikiTestCase { ); } + /** + * Broken on gallium which use an old PHPUnit version + * @group Broken + */ function testAvoidDuplicateDeprecations() { MWDebug::deprecated( 'wfOldFunction', '1.0', 'component' ); MWDebug::deprecated( 'wfOldFunction', '1.0', 'component' ); @@ -39,6 +49,10 @@ class MWDebugTest extends MediaWikiTestCase { ); } + /** + * Broken on gallium which use an old PHPUnit version + * @group Broken + */ function testAvoidNonConsecutivesDuplicateDeprecations() { MWDebug::deprecated( 'wfOldFunction', '1.0', 'component' ); MWDebug::warning( 'some warning' );