MediaWiki  REL1_24
FileBackendTest Class Reference

FileRepo FileBackend medium More...

Inheritance diagram for FileBackendTest:
Collaboration diagram for FileBackendTest:

List of all members.

Public Member Functions

 assertBackendPathsConsistent (array $paths)
 assertGoodStatus ($status, $msg)
 doTestGetLocalCopyAndReference404 ()
 tearDownFiles ()
 testConcatenate ($op, $srcs, $srcsContent, $alreadyExists, $okStatus)
 provider_testConcatenate
 testCopy ($op)
 provider_testCopy FileBackend::doOperation
 testCreate ($op, $alreadyExists, $okStatus, $newSize)
 provider_testCreate FileBackend::doOperation
 testDelete ($op, $withSource, $okStatus)
 provider_testDelete FileBackend::doOperation
 testDescribe ($op, $withSource, $okStatus)
 provider_testDescribe FileBackend::doOperation
 testDoOperations ()
 FileBackend::doOperations
 testDoOperationsFailing ()
 FileBackend::doOperations
 testDoOperationsPipeline ()
 FileBackend::doOperations
 testDoQuickOperations ()
 FileBackend::doQuickOperations
 testExtensionFromPath ($path, $res)
 provider_testExtensionFromPath FileBackend::extensionFromPath
 testGetDirectoryList ()
 FileBackend::getTopDirectoryList FileBackend::getDirectoryList
 testGetFileContents ($source, $content)
 provider_testGetFileContents FileBackend::getFileContents FileBackend::getFileContentsMulti
 testGetFileHttpUrl ($source, $content)
 provider_testGetFileHttpUrl FileBackend::getFileHttpUrl
 testGetFileList ()
 FileBackend::getFileList
 testGetFileStat ($path, $content, $alreadyExists)
 provider_testGetFileStat FileBackend::getFileStat
 testGetLocalCopy ($source, $content)
 provider_testGetLocalCopy FileBackend::getLocalCopy
 testGetLocalCopyAndReference404 ()
 FileBackend::getLocalCopy FileBackend::getLocalReference
 testGetLocalReference ($source, $content)
 provider_testGetLocalReference FileBackend::getLocalReference
 testIsStoragePath ($path, $isStorePath)
 provider_testIsStoragePath FileBackend::isStoragePath
 testLockCalls ()
 FileBackend::lockFiles FileBackend::unlockFiles
 testMove ($op)
 provider_testMove FileBackend::doOperation
 testNormalizeStoragePath ($path, $res)
 provider_normalizeStoragePath FileBackend::normalizeStoragePath
 testParentStoragePath ($path, $res)
 provider_testParentStoragePath FileBackend::parentStoragePath
 testPrepareAndClean ($path, $isOK)
 provider_testPrepareAndClean FileBackend::prepare FileBackend::clean
 testRecursiveClean ()
 testSplitStoragePath ($path, $res)
 provider_testSplitStoragePath FileBackend::splitStoragePath
 testStore ($op)
 provider_testStore
 testStreamFile ($path, $content, $alreadyExists)
 provider_testGetFileStat FileBackend::streamFile

Static Public Member Functions

static provider_normalizeStoragePath ()
static provider_testConcatenate ()
static provider_testCopy ()
static provider_testCreate ()
 provider_testCreate
static provider_testDelete ()
static provider_testDescribe ()
static provider_testExtensionFromPath ()
static provider_testGetFileContents ()
static provider_testGetFileHttpUrl ()
static provider_testGetFileStat ()
static provider_testGetLocalCopy ()
static provider_testGetLocalReference ()
static provider_testIsStoragePath ()
static provider_testMove ()
static provider_testParentStoragePath ()
static provider_testPrepareAndClean ()
static provider_testSplitStoragePath ()
static provider_testStore ()
static provider_testStreamFile ()

Public Attributes

FSFileBackend $singleBackend
 *

Protected Member Functions

 setUp ()

Private Member Functions

 assertHasHeaders (array $headers, array $attr)
 backendClass ()
 create (array $params)
 deleteFiles ($container)
 doTestConcatenate ($params, $srcs, $srcsContent, $alreadyExists, $okStatus)
 doTestCopy ($op)
 doTestCreate ($op, $alreadyExists, $okStatus, $newSize)
 doTestDelete ($op, $withSource, $okStatus)
 doTestDescribe ($op, $withSource, $okStatus)
 doTestDoOperations ()
 doTestDoOperationsFailing ()
 doTestDoOperationsPipeline ()
 doTestDoQuickOperations ()
 doTestGetDirectoryList ()
 doTestGetFileContents ($source, $content)
 doTestGetFileHttpUrl ($source, $content)
 doTestGetFileList ()
 doTestGetFileStat ($path, $content, $alreadyExists)
 doTestGetLocalCopy ($source, $content)
 doTestGetLocalReference ($source, $content)
 doTestLockCalls ()
 doTestMove ($op)
 doTestPrepareAndClean ($path, $isOK)
 doTestRecursiveClean ()
 FileBackend::clean
 doTestStore ($op)
 FileBackend::doOperation
 doTestStreamFile ($path, $content)
 listToArray ($iter)
 prepare (array $params)

Static Private Member Functions

static baseStorePath ()

Private Attributes

FileBackend $backend
 *
 $filesToPrune = array()
FileBackendMultiWrite $multiBackend
 *

Static Private Attributes

static $backendToUse

Detailed Description

FileRepo FileBackend medium

Definition at line 8 of file FileBackendTest.php.


Member Function Documentation

FileBackendTest::assertGoodStatus ( status,
msg 
)

Definition at line 2466 of file FileBackendTest.php.

FileBackendTest::assertHasHeaders ( array headers,
array attr 
) [private]

Definition at line 700 of file FileBackendTest.php.

Definition at line 86 of file FileBackendTest.php.

static FileBackendTest::baseStorePath ( ) [static, private]

Definition at line 82 of file FileBackendTest.php.

FileBackendTest::create ( array params) [private]

Definition at line 2427 of file FileBackendTest.php.

FileBackendTest::deleteFiles ( container) [private]

Definition at line 2446 of file FileBackendTest.php.

FileBackendTest::doTestConcatenate ( params,
srcs,
srcsContent,
alreadyExists,
okStatus 
) [private]

Definition at line 963 of file FileBackendTest.php.

FileBackendTest::doTestCopy ( op) [private]

Definition at line 316 of file FileBackendTest.php.

FileBackendTest::doTestCreate ( op,
alreadyExists,
okStatus,
newSize 
) [private]

Definition at line 752 of file FileBackendTest.php.

FileBackendTest::doTestDelete ( op,
withSource,
okStatus 
) [private]

Definition at line 559 of file FileBackendTest.php.

FileBackendTest::doTestDescribe ( op,
withSource,
okStatus 
) [private]

Definition at line 651 of file FileBackendTest.php.

Definition at line 1662 of file FileBackendTest.php.

Definition at line 1854 of file FileBackendTest.php.

Definition at line 1753 of file FileBackendTest.php.

Definition at line 872 of file FileBackendTest.php.

Definition at line 2110 of file FileBackendTest.php.

FileBackendTest::doTestGetFileContents ( source,
content 
) [private]

Definition at line 1220 of file FileBackendTest.php.

FileBackendTest::doTestGetFileHttpUrl ( source,
content 
) [private]

Definition at line 1487 of file FileBackendTest.php.

Definition at line 1931 of file FileBackendTest.php.

FileBackendTest::doTestGetFileStat ( path,
content,
alreadyExists 
) [private]

Definition at line 1092 of file FileBackendTest.php.

FileBackendTest::doTestGetLocalCopy ( source,
content 
) [private]

Definition at line 1292 of file FileBackendTest.php.

FileBackendTest::doTestGetLocalReference ( source,
content 
) [private]

Definition at line 1378 of file FileBackendTest.php.

Definition at line 2320 of file FileBackendTest.php.

FileBackendTest::doTestMove ( op) [private]

Definition at line 437 of file FileBackendTest.php.

FileBackendTest::doTestPrepareAndClean ( path,
isOK 
) [private]

Definition at line 1542 of file FileBackendTest.php.

FileBackendTest::doTestStore ( op) [private]

FileBackend::doOperation

Definition at line 231 of file FileBackendTest.php.

FileBackendTest::doTestStreamFile ( path,
content 
) [private]

Definition at line 1163 of file FileBackendTest.php.

FileBackendTest::listToArray ( iter) [private]

Definition at line 2417 of file FileBackendTest.php.

FileBackendTest::prepare ( array params) [private]

Definition at line 2422 of file FileBackendTest.php.

Definition at line 149 of file FileBackendTest.php.

Definition at line 1026 of file FileBackendTest.php.

Definition at line 373 of file FileBackendTest.php.

provider_testCreate

Definition at line 805 of file FileBackendTest.php.

Definition at line 599 of file FileBackendTest.php.

Definition at line 714 of file FileBackendTest.php.

Definition at line 201 of file FileBackendTest.php.

Definition at line 1261 of file FileBackendTest.php.

Definition at line 1505 of file FileBackendTest.php.

Definition at line 1141 of file FileBackendTest.php.

Definition at line 1346 of file FileBackendTest.php.

Definition at line 1425 of file FileBackendTest.php.

Definition at line 99 of file FileBackendTest.php.

Definition at line 495 of file FileBackendTest.php.

Definition at line 179 of file FileBackendTest.php.

Definition at line 1531 of file FileBackendTest.php.

Definition at line 124 of file FileBackendTest.php.

Definition at line 269 of file FileBackendTest.php.

Definition at line 1193 of file FileBackendTest.php.

FileBackendTest::setUp ( ) [protected]

Reimplemented from MediaWikiTestCase.

Definition at line 16 of file FileBackendTest.php.

Definition at line 2433 of file FileBackendTest.php.

FileBackendTest::testConcatenate ( op,
srcs,
srcsContent,
alreadyExists,
okStatus 
)

provider_testConcatenate

Definition at line 947 of file FileBackendTest.php.

provider_testCopy FileBackend::doOperation

Definition at line 304 of file FileBackendTest.php.

FileBackendTest::testCreate ( op,
alreadyExists,
okStatus,
newSize 
)

provider_testCreate FileBackend::doOperation

Definition at line 740 of file FileBackendTest.php.

FileBackendTest::testDelete ( op,
withSource,
okStatus 
)

provider_testDelete FileBackend::doOperation

Definition at line 547 of file FileBackendTest.php.

FileBackendTest::testDescribe ( op,
withSource,
okStatus 
)

provider_testDescribe FileBackend::doOperation

Definition at line 639 of file FileBackendTest.php.

FileBackendTest::testExtensionFromPath ( path,
res 
)

provider_testExtensionFromPath FileBackend::extensionFromPath

Definition at line 196 of file FileBackendTest.php.

FileBackendTest::testGetFileContents ( source,
content 
)

provider_testGetFileContents FileBackend::getFileContents FileBackend::getFileContentsMulti

Definition at line 1208 of file FileBackendTest.php.

FileBackendTest::testGetFileHttpUrl ( source,
content 
)

provider_testGetFileHttpUrl FileBackend::getFileHttpUrl

Definition at line 1475 of file FileBackendTest.php.

FileBackendTest::testGetFileStat ( path,
content,
alreadyExists 
)

provider_testGetFileStat FileBackend::getFileStat

Definition at line 1080 of file FileBackendTest.php.

FileBackendTest::testGetLocalCopy ( source,
content 
)

provider_testGetLocalCopy FileBackend::getLocalCopy

Definition at line 1280 of file FileBackendTest.php.

FileBackendTest::testGetLocalReference ( source,
content 
)

provider_testGetLocalReference FileBackend::getLocalReference

Definition at line 1366 of file FileBackendTest.php.

FileBackendTest::testIsStoragePath ( path,
isStorePath 
)

provider_testIsStoragePath FileBackend::isStoragePath

Definition at line 94 of file FileBackendTest.php.

provider_testMove FileBackend::doOperation

Definition at line 425 of file FileBackendTest.php.

provider_normalizeStoragePath FileBackend::normalizeStoragePath

Definition at line 144 of file FileBackendTest.php.

FileBackendTest::testParentStoragePath ( path,
res 
)

provider_testParentStoragePath FileBackend::parentStoragePath

Definition at line 174 of file FileBackendTest.php.

FileBackendTest::testPrepareAndClean ( path,
isOK 
)

provider_testPrepareAndClean FileBackend::prepare FileBackend::clean

Definition at line 1521 of file FileBackendTest.php.

FileBackendTest::testSplitStoragePath ( path,
res 
)

provider_testSplitStoragePath FileBackend::splitStoragePath

Definition at line 119 of file FileBackendTest.php.

provider_testStore

Definition at line 213 of file FileBackendTest.php.

FileBackendTest::testStreamFile ( path,
content,
alreadyExists 
)

provider_testGetFileStat FileBackend::streamFile

Definition at line 1156 of file FileBackendTest.php.


Member Data Documentation

FileBackend FileBackendTest::$backend [private]

*

Definition at line 10 of file FileBackendTest.php.

FileBackendTest::$backendToUse [static, private]

Definition at line 14 of file FileBackendTest.php.

FileBackendTest::$filesToPrune = array() [private]

Definition at line 13 of file FileBackendTest.php.

FileBackendMultiWrite FileBackendTest::$multiBackend [private]

*

Definition at line 11 of file FileBackendTest.php.

FSFileBackend FileBackendTest::$singleBackend

*

Definition at line 12 of file FileBackendTest.php.


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