MediaWiki
REL1_21
|
Public Member Functions | |
testPageMissAtEnd () | |
testRevisionMissAtEnd () | |
testSequential () | |
testSequentialAcrossFiles () | |
testSynchronizeMissInWholeFirstFile () | |
testSynchronizePageMiss () | |
testSynchronizePageMissAtStart () | |
testSynchronizeRevisionMissAtStart () | |
testSynchronizeRevisionMissToPage () | |
testSynchronizeRevisionMissToRevision () | |
testSynchronizeSkipAcrossFile () | |
Protected Member Functions | |
tearDown () | |
Private Member Functions | |
assertPrefetchEquals ($expected, $page, $revision) | |
asserts that a prefetch yields an expected string | |
setUpPrefetch ($requested_pages=array(1, 2, 4)) | |
Constructs a temporary file that can be used for prefetching. | |
Private Attributes | |
BaseDump | $dump = null |
the BaseDump instance used within a test. |
BaseDumpTest::assertPrefetchEquals | ( | $ | expected, |
$ | page, | ||
$ | revision | ||
) | [private] |
asserts that a prefetch yields an expected string
$expected | string|null: the exepcted result of the prefetch |
$page | int: the page number to prefetch the text for |
$revision | int: the revision number to prefetch the text for |
Definition at line 35 of file backupPrefetchTest.php.
Referenced by testPageMissAtEnd(), testRevisionMissAtEnd(), testSequential(), testSequentialAcrossFiles(), testSynchronizeMissInWholeFirstFile(), testSynchronizePageMiss(), testSynchronizePageMissAtStart(), testSynchronizeRevisionMissAtStart(), testSynchronizeRevisionMissToPage(), testSynchronizeRevisionMissToRevision(), and testSynchronizeSkipAcrossFile().
BaseDumpTest::setUpPrefetch | ( | $ | requested_pages = array( 1, 2, 4 ) | ) | [private] |
Constructs a temporary file that can be used for prefetching.
The temporary file is removed by DumpBackup upon tearDown.
$requested_pages | Array The indices of the page parts that should go into the prefetch file. 1,2,4 are available. |
Definition at line 149 of file backupPrefetchTest.php.
Referenced by testPageMissAtEnd(), testRevisionMissAtEnd(), testSequential(), testSequentialAcrossFiles(), testSynchronizeMissInWholeFirstFile(), testSynchronizePageMiss(), testSynchronizePageMissAtStart(), testSynchronizeRevisionMissAtStart(), testSynchronizeRevisionMissToPage(), testSynchronizeRevisionMissToRevision(), and testSynchronizeSkipAcrossFile().
BaseDumpTest::tearDown | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Definition at line 18 of file backupPrefetchTest.php.
Definition at line 78 of file backupPrefetchTest.php.
References $fname, assertPrefetchEquals(), and setUpPrefetch().
Definition at line 86 of file backupPrefetchTest.php.
References $fname, assertPrefetchEquals(), and setUpPrefetch().
Definition at line 41 of file backupPrefetchTest.php.
References $fname, assertPrefetchEquals(), and setUpPrefetch().
Definition at line 110 of file backupPrefetchTest.php.
References array(), assertPrefetchEquals(), and setUpPrefetch().
Definition at line 131 of file backupPrefetchTest.php.
References array(), assertPrefetchEquals(), and setUpPrefetch().
Definition at line 69 of file backupPrefetchTest.php.
References $fname, assertPrefetchEquals(), and setUpPrefetch().
Definition at line 94 of file backupPrefetchTest.php.
References $fname, assertPrefetchEquals(), and setUpPrefetch().
Definition at line 102 of file backupPrefetchTest.php.
References $fname, assertPrefetchEquals(), and setUpPrefetch().
Definition at line 60 of file backupPrefetchTest.php.
References $fname, assertPrefetchEquals(), and setUpPrefetch().
Definition at line 51 of file backupPrefetchTest.php.
References $fname, assertPrefetchEquals(), and setUpPrefetch().
Definition at line 121 of file backupPrefetchTest.php.
References array(), assertPrefetchEquals(), and setUpPrefetch().
BaseDump BaseDumpTest::$dump = null [private] |
the BaseDump instance used within a test.
If set, this BaseDump gets automatically closed in tearDown.
Definition at line 16 of file backupPrefetchTest.php.