MWDebug::clearLog();
}
- /**
- * @group Broken
- */
function testAddLog() {
MWDebug::log( 'logging a string' );
$this->assertEquals( array( array(
);
}
- /**
- * @group Broken
- */
function testAddWarning() {
MWDebug::warning( 'Warning message' );
$this->assertEquals( array( array(
);
}
- /**
- * 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' );
- $this->assertCount( 1,
- MWDebug::getLog(),
+ // assertCount() not available on WMF integration server
+ $this->assertEquals( 1,
+ count( MWDebug::getLog() ),
"Only one deprecated warning per function should be kept"
);
}
- /**
- * Broken on gallium which use an old PHPUnit version
- * @group Broken
- */
function testAvoidNonConsecutivesDuplicateDeprecations() {
MWDebug::deprecated( 'wfOldFunction', '1.0', 'component' );
MWDebug::warning( 'some warning' );
// Another deprecation
MWDebug::deprecated( 'wfOldFunction', '1.0', 'component' );
- $this->assertCount( 3,
- MWDebug::getLog(),
+ // assertCount() not available on WMF integration server
+ $this->assertEquals( 3,
+ count( MWDebug::getLog() ),
"Only one deprecated warning per function should be kept"
);
}