MediaWiki
REL1_24
|
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
string | null | $expected | The exepcted result of the prefetch |
int | $page | The page number to prefetch the text for |
int | $revision | The revision number to prefetch the text for |
Definition at line 36 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.
array | $requested_pages | The indices of the page parts that should go into the prefetch file. 1,2,4 are available. |
Definition at line 148 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 19 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 17 of file backupPrefetchTest.php.