MediaWiki  REL1_22
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

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 ()

Public Attributes

FSFileBackend $singleBackend
 *

Protected Member Functions

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

Private Member Functions

 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
 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 2300 of file FileBackendTest.php.

Definition at line 85 of file FileBackendTest.php.

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

Definition at line 81 of file FileBackendTest.php.

FileBackendTest::create ( array params) [private]

Definition at line 2261 of file FileBackendTest.php.

FileBackendTest::deleteFiles ( container) [private]

Definition at line 2280 of file FileBackendTest.php.

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

Definition at line 926 of file FileBackendTest.php.

FileBackendTest::doTestCopy ( op) [private]

Definition at line 312 of file FileBackendTest.php.

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

Definition at line 715 of file FileBackendTest.php.

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

Definition at line 555 of file FileBackendTest.php.

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

Definition at line 647 of file FileBackendTest.php.

Definition at line 1514 of file FileBackendTest.php.

Definition at line 1706 of file FileBackendTest.php.

Definition at line 1605 of file FileBackendTest.php.

Definition at line 835 of file FileBackendTest.php.

Definition at line 1951 of file FileBackendTest.php.

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

Definition at line 1132 of file FileBackendTest.php.

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

Definition at line 1359 of file FileBackendTest.php.

Definition at line 1783 of file FileBackendTest.php.

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

Definition at line 1055 of file FileBackendTest.php.

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

Definition at line 1192 of file FileBackendTest.php.

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

Definition at line 1262 of file FileBackendTest.php.

Definition at line 2154 of file FileBackendTest.php.

FileBackendTest::doTestMove ( op) [private]

Definition at line 433 of file FileBackendTest.php.

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

Definition at line 1414 of file FileBackendTest.php.

FileBackendTest::doTestStore ( op) [private]

FileBackend::doOperation

Definition at line 227 of file FileBackendTest.php.

FileBackendTest::listToArray ( iter) [private]

Definition at line 2251 of file FileBackendTest.php.

FileBackendTest::prepare ( array params) [private]

Definition at line 2256 of file FileBackendTest.php.

Definition at line 148 of file FileBackendTest.php.

Definition at line 989 of file FileBackendTest.php.

Definition at line 369 of file FileBackendTest.php.

provider_testCreate

Definition at line 768 of file FileBackendTest.php.

Definition at line 595 of file FileBackendTest.php.

Definition at line 676 of file FileBackendTest.php.

Definition at line 197 of file FileBackendTest.php.

Definition at line 1161 of file FileBackendTest.php.

Definition at line 1377 of file FileBackendTest.php.

Definition at line 1104 of file FileBackendTest.php.

Definition at line 1230 of file FileBackendTest.php.

Definition at line 1297 of file FileBackendTest.php.

Definition at line 98 of file FileBackendTest.php.

Definition at line 491 of file FileBackendTest.php.

Definition at line 175 of file FileBackendTest.php.

Definition at line 1403 of file FileBackendTest.php.

Definition at line 123 of file FileBackendTest.php.

Definition at line 265 of file FileBackendTest.php.

FileBackendTest::setUp ( ) [protected]

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

Reimplemented from MediaWikiTestCase.

Definition at line 16 of file FileBackendTest.php.

Definition at line 2267 of file FileBackendTest.php.

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

provider_testConcatenate

Definition at line 910 of file FileBackendTest.php.

provider_testCopy FileBackend::doOperation

Definition at line 300 of file FileBackendTest.php.

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

provider_testCreate FileBackend::doOperation

Definition at line 703 of file FileBackendTest.php.

FileBackendTest::testDelete ( op,
withSource,
okStatus 
)

provider_testDelete FileBackend::doOperation

Definition at line 543 of file FileBackendTest.php.

FileBackendTest::testDescribe ( op,
withSource,
okStatus 
)

provider_testDescribe FileBackend::doOperation

Definition at line 635 of file FileBackendTest.php.

FileBackendTest::testExtensionFromPath ( path,
res 
)

provider_testExtensionFromPath FileBackend::extensionFromPath

Definition at line 192 of file FileBackendTest.php.

FileBackendTest::testGetFileContents ( source,
content 
)

provider_testGetFileContents FileBackend::getFileContents FileBackend::getFileContentsMulti

Definition at line 1120 of file FileBackendTest.php.

FileBackendTest::testGetFileHttpUrl ( source,
content 
)

provider_testGetFileHttpUrl FileBackend::getFileHttpUrl

Definition at line 1347 of file FileBackendTest.php.

FileBackendTest::testGetFileStat ( path,
content,
alreadyExists 
)

provider_testGetFileStat FileBackend::getFileStat

Definition at line 1043 of file FileBackendTest.php.

FileBackendTest::testGetLocalCopy ( source,
content 
)

provider_testGetLocalCopy FileBackend::getLocalCopy

Definition at line 1180 of file FileBackendTest.php.

FileBackendTest::testGetLocalReference ( source,
content 
)

provider_testGetLocalReference FileBackend::getLocalReference

Definition at line 1250 of file FileBackendTest.php.

FileBackendTest::testIsStoragePath ( path,
isStorePath 
)

provider_testIsStoragePath FileBackend::isStoragePath

Definition at line 93 of file FileBackendTest.php.

provider_testMove FileBackend::doOperation

Definition at line 421 of file FileBackendTest.php.

provider_normalizeStoragePath FileBackend::normalizeStoragePath

Definition at line 143 of file FileBackendTest.php.

FileBackendTest::testParentStoragePath ( path,
res 
)

provider_testParentStoragePath FileBackend::parentStoragePath

Definition at line 170 of file FileBackendTest.php.

FileBackendTest::testPrepareAndClean ( path,
isOK 
)

provider_testPrepareAndClean FileBackend::prepare FileBackend::clean

Definition at line 1393 of file FileBackendTest.php.

FileBackendTest::testSplitStoragePath ( path,
res 
)

provider_testSplitStoragePath FileBackend::splitStoragePath

Definition at line 118 of file FileBackendTest.php.

provider_testStore

Definition at line 209 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: