MediaWiki  REL1_22
MaintenanceTest Class Reference
Inheritance diagram for MaintenanceTest:
Collaboration diagram for MaintenanceTest:

List of all members.

Public Member Functions

 testCleanupChanneledAfterNLOutput ()
 testCleanupChanneledAfterNLOutputWChannel ()
 testCleanupChanneledAfterNLOutputWNullChannel ()
 testCleanupChanneledAfterOutput ()
 testCleanupChanneledAfterOutputChanneledWChannel ()
 testCleanupChanneledAfterOutputChanneledWNullChannel ()
 testCleanupChanneledAfterOutputChanneledWOChannel ()
 testCleanupChanneledAfterOutputWChannel ()
 testCleanupChanneledAfterOutputWNullChannel ()
 testCleanupChanneledClean ()
 testMultipleMaintenanceObjectsInteractionCleanupChanneledWChannel ()
 testMultipleMaintenanceObjectsInteractionOutput ()
 testMultipleMaintenanceObjectsInteractionOutputChanneled ()
 testMultipleMaintenanceObjectsInteractionOutputChanneledWChannel ()
 testMultipleMaintenanceObjectsInteractionOutputChanneledWNullChannel ()
 testMultipleMaintenanceObjectsInteractionOutputWChannel ()
 testMultipleMaintenanceObjectsInteractionOutputWChannelNL ()
 testMultipleMaintenanceObjectsInteractionOutputWNullChannel ()
 testMultipleMaintenanceObjectsInteractionOutputWNullChannelNL ()
 testOutputChanneledEmpty ()
 testOutputChanneledString ()
 testOutputChanneledStringNLString ()
 testOutputChanneledStringNLStringNLArbitraryAgain ()
 testOutputChanneledStringString ()
 testOutputChanneledWAndWOChannelStringStartW ()
 testOutputChanneledWAndWOChannelStringStartWO ()
 testOutputChanneledWChannelIntermittentEmpty ()
 testOutputChanneledWChannelIntermittentFalse ()
 testOutputChanneledWChannelString ()
 testOutputChanneledWChannelStringNLString ()
 testOutputChanneledWChannelStringNLStringNLArbitraryAgain ()
 testOutputChanneledWChannelStringString ()
 testOutputChanneledWChannelTypeSwitch ()
 testOutputChanneledWMultipleChannelsChannelAfterNullChange ()
 testOutputChanneledWMultipleChannelsChannelChange ()
 testOutputChanneledWMultipleChannelsChannelChangeEnclosedNull ()
 testOutputChanneledWNullChannelEmpty ()
 testOutputChanneledWNullChannelIntermittentEmpty ()
 testOutputChanneledWNullChannelIntermittentFalse ()
 testOutputChanneledWNullChannelString ()
 testOutputChanneledWNullChannelStringNLString ()
 testOutputChanneledWNullChannelStringNLStringNLArbitraryAgain ()
 testOutputChanneledWNullChannelStringString ()
 testOutputChanneledWOChannelIntermittentEmpty ()
 testOutputChanneledWOChannelIntermittentFalse ()
 testOutputEmpty ()
 testOutputIntermittentEmpty ()
 testOutputIntermittentFalse ()
 testOutputIntermittentFalseAfterOtherChannel ()
 testOutputString ()
 testOutputStringNL ()
 testOutputStringNLNL ()
 testOutputStringNLString ()
 testOutputStringNLStringNL ()
 testOutputStringNLStringNLArbitrary ()
 testOutputStringNLStringNLArbitraryAgain ()
 testOutputStringNLStringNLLinewise ()
 testOutputStringString ()
 testOutputWAndWOChannelStringStartW ()
 testOutputWAndWOChannelStringStartWO ()
 testOutputWChannelIntermittentEmpty ()
 testOutputWChannelIntermittentFalse ()
 testOutputWChannelString ()
 testOutputWChannelStringNL ()
 testOutputWChannelStringNLNL ()
 testOutputWChannelStringNLString ()
 testOutputWChannelStringNLStringNL ()
 testOutputWChannelStringNLStringNLArbitrary ()
 testOutputWChannelStringNLStringNLArbitraryAgain ()
 testOutputWChannelStringNLStringNLLinewise ()
 testOutputWChannelTypeSwitch ()
 testOutputWMultipleChannelsChannelChange ()
 testOutputWMultipleChannelsChannelChangeNL ()
 testOutputWNullChannelEmpty ()
 testOutputWNullChannelIntermittentEmpty ()
 testOutputWNullChannelIntermittentFalse ()
 testOutputWNullChannelString ()
 testOutputWNullChannelStringNL ()
 testOutputWNullChannelStringNLNL ()
 testOutputWNullChannelStringNLString ()
 testOutputWNullChannelStringNLStringNL ()
 testOutputWNullChannelStringNLStringNLArbitrary ()
 testOutputWNullChannelStringNLStringNLArbitraryAgain ()
 testOutputWNullChannelStringNLStringNLLinewise ()
 testOutputWNullChannelStringString ()

Protected Member Functions

 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.
 tearDown ()

Private Member Functions

 assertOutputPrePostShutdown ($preShutdownOutput, $expectNLAppending)
 asserts the output before and after simulating shutdown

Private Attributes

MaintenanceFixup $m
 The main Maintenance instance that is used for testing.

Detailed Description

Definition at line 131 of file MaintenanceTest.php.


Member Function Documentation

MaintenanceTest::assertOutputPrePostShutdown ( preShutdownOutput,
expectNLAppending 
) [private]

asserts the output before and after simulating shutdown

This function simulates shutdown of self::m.

Parameters:
$preShutdownOutputstring: expected output before simulating shutdown
$expectNLAppendingbool: Whether or not shutdown simulation is expected to add a newline to the output. If false, $preShutdownOutput is the expected output after shutdown simulation. Otherwise, $preShutdownOutput with an appended newline is the expected output after shutdown simulation.

Definition at line 167 of file MaintenanceTest.php.

MaintenanceTest::setUp ( ) [protected]

setUp and tearDown should (where significant) happen in reverse order.

Reimplemented from MediaWikiTestCase.

Definition at line 141 of file MaintenanceTest.php.

MaintenanceTest::tearDown ( ) [protected]

Reimplemented from MediaWikiTestCase.

Definition at line 146 of file MaintenanceTest.php.

Definition at line 185 of file MaintenanceTest.php.


Member Data Documentation

MaintenanceFixup MaintenanceTest::$m [private]

The main Maintenance instance that is used for testing.

Definition at line 138 of file MaintenanceTest.php.


The documentation for this class was generated from the following file: