Disable MWDebug tests for now
authorAntoine Musso <hashar@users.mediawiki.org>
Fri, 13 Jan 2012 23:26:26 +0000 (23:26 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Fri, 13 Jan 2012 23:26:26 +0000 (23:26 +0000)
PHPUnit is too old on gallium so assertCount() is not recognized
The other two tests are broken for an unknown reason.

tests/phpunit/includes/debug/MWDebugTest.php

index e36e42f..a2bbb27 100644 (file)
@@ -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' );