* Simulates what Maintenance wants to happen at script's end.
*/
public function simulateShutdown() {
-
if ( $this->shutdownSimulated ) {
$this->testCase->fail( __METHOD__ . " called more than once" );
}
* after shutdown simulation.
*/
private function assertOutputPrePostShutdown( $preShutdownOutput, $expectNLAppending ) {
-
$this->assertEquals( $preShutdownOutput, $this->getActualOutput(),
"Output before shutdown simulation" );
* @covers Maintenance::setConfig
*/
public function testSetConfig() {
- $conf = $this->getMock( 'Config' );
+ $conf = $this->createMock( 'Config' );
$this->m->setConfig( $conf );
$this->assertSame( $conf, $this->m->getConfig() );
}