MediaWiki
REL1_22
|
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 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 18 of file backupPrefetchTest.php.
Definition at line 77 of file backupPrefetchTest.php.
References $fname, assertPrefetchEquals(), and setUpPrefetch().
Definition at line 85 of file backupPrefetchTest.php.
References $fname, assertPrefetchEquals(), and setUpPrefetch().
Definition at line 40 of file backupPrefetchTest.php.
References $fname, assertPrefetchEquals(), and setUpPrefetch().
Definition at line 109 of file backupPrefetchTest.php.
References array(), assertPrefetchEquals(), and setUpPrefetch().
Definition at line 130 of file backupPrefetchTest.php.
References array(), assertPrefetchEquals(), and setUpPrefetch().
Definition at line 68 of file backupPrefetchTest.php.
References $fname, assertPrefetchEquals(), and setUpPrefetch().
Definition at line 93 of file backupPrefetchTest.php.
References $fname, assertPrefetchEquals(), and setUpPrefetch().
Definition at line 101 of file backupPrefetchTest.php.
References $fname, assertPrefetchEquals(), and setUpPrefetch().
Definition at line 59 of file backupPrefetchTest.php.
References $fname, assertPrefetchEquals(), and setUpPrefetch().
Definition at line 50 of file backupPrefetchTest.php.
References $fname, assertPrefetchEquals(), and setUpPrefetch().
Definition at line 120 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.