parent::tearDown();
}
+ /**
+ * @covers MWDebug::log
+ */
public function testAddLog() {
MWDebug::log( 'logging a string' );
$this->assertEquals(
);
}
+ /**
+ * @covers MWDebug::warning
+ */
public function testAddWarning() {
MWDebug::warning( 'Warning message' );
$this->assertEquals(
);
}
+ /**
+ * @covers MWDebug::deprecated
+ */
public function testAvoidDuplicateDeprecations() {
MWDebug::deprecated( 'wfOldFunction', '1.0', 'component' );
MWDebug::deprecated( 'wfOldFunction', '1.0', 'component' );
);
}
+ /**
+ * @covers MWDebug::deprecated
+ */
public function testAvoidNonConsecutivesDuplicateDeprecations() {
MWDebug::deprecated( 'wfOldFunction', '1.0', 'component' );
MWDebug::warning( 'some warning' );