MediaWiki  1.23.14
FileBackendTest Class Reference

@group FileRepo @group FileBackend @group medium More...

Inheritance diagram for FileBackendTest:
Collaboration diagram for FileBackendTest:

Public Member Functions

 assertBackendPathsConsistent (array $paths)
 
 assertGoodStatus ( $status, $msg)
 
 doTestGetLocalCopyAndReference404 ()
 
 tearDownFiles ()
 
 testConcatenate ( $op, $srcs, $srcsContent, $alreadyExists, $okStatus)
 @dataProvider provider_testConcatenate More...
 
 testCopy ( $op)
 @dataProvider provider_testCopy @covers FileBackend::doOperation More...
 
 testCreate ( $op, $alreadyExists, $okStatus, $newSize)
 @dataProvider provider_testCreate @covers FileBackend::doOperation More...
 
 testDelete ( $op, $withSource, $okStatus)
 @dataProvider provider_testDelete @covers FileBackend::doOperation More...
 
 testDescribe ( $op, $withSource, $okStatus)
 @dataProvider provider_testDescribe @covers FileBackend::doOperation More...
 
 testDoOperations ()
 @covers FileBackend::doOperations More...
 
 testDoOperationsFailing ()
 @covers FileBackend::doOperations More...
 
 testDoOperationsPipeline ()
 @covers FileBackend::doOperations More...
 
 testDoQuickOperations ()
 @covers FileBackend::doQuickOperations More...
 
 testExtensionFromPath ( $path, $res)
 @dataProvider provider_testExtensionFromPath @covers FileBackend::extensionFromPath More...
 
 testGetDirectoryList ()
 @covers FileBackend::getTopDirectoryList @covers FileBackend::getDirectoryList More...
 
 testGetFileContents ( $source, $content)
 @dataProvider provider_testGetFileContents @covers FileBackend::getFileContents @covers FileBackend::getFileContentsMulti More...
 
 testGetFileHttpUrl ( $source, $content)
 @dataProvider provider_testGetFileHttpUrl @covers FileBackend::getFileHttpUrl More...
 
 testGetFileList ()
 @covers FileBackend::getFileList More...
 
 testGetFileStat ( $path, $content, $alreadyExists)
 @dataProvider provider_testGetFileStat @covers FileBackend::getFileStat More...
 
 testGetLocalCopy ( $source, $content)
 @dataProvider provider_testGetLocalCopy @covers FileBackend::getLocalCopy More...
 
 testGetLocalCopyAndReference404 ()
 @covers FileBackend::getLocalCopy @covers FileBackend::getLocalReference More...
 
 testGetLocalReference ( $source, $content)
 @dataProvider provider_testGetLocalReference @covers FileBackend::getLocalReference More...
 
 testIsStoragePath ( $path, $isStorePath)
 @dataProvider provider_testIsStoragePath @covers FileBackend::isStoragePath More...
 
 testLockCalls ()
 @covers FileBackend::lockFiles @covers FileBackend::unlockFiles More...
 
 testMove ( $op)
 @dataProvider provider_testMove @covers FileBackend::doOperation More...
 
 testNormalizeStoragePath ( $path, $res)
 @dataProvider provider_normalizeStoragePath @covers FileBackend::normalizeStoragePath More...
 
 testParentStoragePath ( $path, $res)
 @dataProvider provider_testParentStoragePath @covers FileBackend::parentStoragePath More...
 
 testPrepareAndClean ( $path, $isOK)
 @dataProvider provider_testPrepareAndClean @covers FileBackend::prepare @covers FileBackend::clean More...
 
 testRecursiveClean ()
 
 testSplitStoragePath ( $path, $res)
 @dataProvider provider_testSplitStoragePath @covers FileBackend::splitStoragePath More...
 
 testStore ( $op)
 @dataProvider provider_testStore More...
 
 testStreamFile ( $path, $content, $alreadyExists)
 @dataProvider provider_testGetFileStat @covers FileBackend::streamFile More...
 
- Public Member Functions inherited from MediaWikiTestCase
 __call ( $func, $args)
 
 __construct ( $name=null, array $data=array(), $dataName='')
 
 addDBData ()
 Stub. More...
 
 dbPrefix ()
 
 getCliArg ( $offset)
 
 hideDeprecated ( $function)
 Don't throw a warning if $function is deprecated and called later. More...
 
 needsDB ()
 
 run (PHPUnit_Framework_TestResult $result=null)
 
 setCliArg ( $offset, $value)
 
 testMediaWikiTestCaseParentSetupCalled ()
 Make sure MediaWikiTestCase extending classes have called their parent setUp method. More...
 
 usesTemporaryTables ()
 

Static Public Member Functions

static provider_normalizeStoragePath ()
 
static provider_testConcatenate ()
 
static provider_testCopy ()
 
static provider_testCreate ()
 @dataProvider provider_testCreate More...
 
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 ()
 
- Static Public Member Functions inherited from MediaWikiTestCase
static listTables ( $db)
 
static setupTestDB (DatabaseBase $db, $prefix)
 Creates an empty skeleton of the wiki database by cloning its structure to equivalent tables using the given $prefix. More...
 
static teardownTestDB ()
 Restores MediaWiki to using the table set (table prefix) it was using before setupTestDB() was called. More...
 

Public Attributes

FSFileBackend $singleBackend
 
- Public Attributes inherited from MediaWikiTestCase
const DB_PREFIX = 'unittest_'
 Table name prefixes. More...
 
const ORA_DB_PREFIX = 'ut_'
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from MediaWikiTestCase
 arrayWrap (array $elements)
 Utility method taking an array of elements and wrapping each element in it's own array. More...
 
 assertArrayEquals (array $expected, array $actual, $ordered=false, $named=false)
 Assert that two arrays are equal. More...
 
 assertException ( $code, $expected='Exception', $message='')
 Asserts that an exception of the specified type occurs when running the provided code. More...
 
 assertHTMLEquals ( $expected, $actual, $msg='')
 Put each HTML element on its own line and then equals() the results. More...
 
 assertSelect ( $table, $fields, $condition, array $expectedRows)
 Asserts that the given database query yields the rows given by $expectedRows. More...
 
 assertType ( $type, $actual, $message='')
 Asserts the type of the provided value. More...
 
 assertTypeOrValue ( $type, $actual, $value=false, $message='')
 Asserts that the provided variable is of the specified internal type or equals the $value argument. More...
 
 assertValidHtmlDocument ( $html)
 Asserts that the given string is valid HTML document. More...
 
 assertValidHtmlSnippet ( $html)
 Asserts that the given string is a valid HTML snippet. More...
 
 checkDbIsSupported ()
 
 checkHasDiff3 ()
 Check, if $wgDiff3 is set and ready to merge Will mark the calling test as skipped, if not ready. More...
 
 checkHasGzip ()
 Check whether we have the 'gzip' commandline utility, will skip the test whenever "gzip -V" fails. More...
 
 checkPHPExtension ( $extName)
 Check if $extName is a loaded PHP extension, will skip the test whenever it is not loaded. More...
 
 getDefaultWikitextNS ()
 Returns the ID of a namespace that defaults to Wikitext. More...
 
 getNewTempDirectory ()
 obtains a new temporary directory More...
 
 getNewTempFile ()
 Obtains a new temporary file name. More...
 
 isWikitextNS ( $ns)
 Returns true if the given namespace defaults to Wikitext according to $wgNamespaceContentModels. More...
 
 mergeMwGlobalArrayValue ( $name, $values)
 Merges the given values into a MW global array variable. More...
 
 objectAssociativeSort (array &$array)
 Does an associative sort that works for objects. More...
 
 setMwGlobals ( $pairs, $value=null)
 
 stashMwGlobals ( $globalKeys)
 Stashes the global, will be restored in tearDown() More...
 
 tearDown ()
 

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 ()
 @covers FileBackend::clean More...
 
 doTestStore ( $op)
 @covers FileBackend::doOperation More...
 
 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
 

Additional Inherited Members

- Static Public Attributes inherited from MediaWikiTestCase
static $users
 
- Static Protected Member Functions inherited from MediaWikiTestCase
static stripStringKeys (&$r)
 Utility function for eliminating all string keys from an array. More...
 
- Protected Attributes inherited from MediaWikiTestCase
DatabaseBase $db
 
array $supportedDBs
 
array $tablesUsed = array()
 

Detailed Description

@group FileRepo @group FileBackend @group medium

Definition at line 8 of file FileBackendTest.php.

Member Function Documentation

◆ assertBackendPathsConsistent()

FileBackendTest::assertBackendPathsConsistent ( array  $paths)

◆ assertGoodStatus()

◆ assertHasHeaders()

FileBackendTest::assertHasHeaders ( array  $headers,
array  $attr 
)
private

Definition at line 696 of file FileBackendTest.php.

References $n, and as.

Referenced by doTestDescribe().

◆ backendClass()

◆ baseStorePath()

◆ create()

FileBackendTest::create ( array  $params)
private

◆ deleteFiles()

FileBackendTest::deleteFiles (   $container)
private

Definition at line 2384 of file FileBackendTest.php.

References $file, array(), as, and baseStorePath().

Referenced by tearDownFiles().

◆ doTestConcatenate()

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

Definition at line 959 of file FileBackendTest.php.

References $ok, $params, $source, array(), as, assertGoodStatus(), backendClass(), and prepare().

Referenced by testConcatenate().

◆ doTestCopy()

FileBackendTest::doTestCopy (   $op)
private

◆ doTestCreate()

FileBackendTest::doTestCreate (   $op,
  $alreadyExists,
  $okStatus,
  $newSize 
)
private

◆ doTestDelete()

FileBackendTest::doTestDelete (   $op,
  $withSource,
  $okStatus 
)
private

◆ doTestDescribe()

FileBackendTest::doTestDescribe (   $op,
  $withSource,
  $okStatus 
)
private

◆ doTestDoOperations()

FileBackendTest::doTestDoOperations ( )
private

◆ doTestDoOperationsFailing()

FileBackendTest::doTestDoOperationsFailing ( )
private

Definition at line 1810 of file FileBackendTest.php.

References array(), baseStorePath(), create(), prepare(), and wfBaseConvert().

Referenced by testDoOperationsFailing().

◆ doTestDoOperationsPipeline()

FileBackendTest::doTestDoOperationsPipeline ( )
private

◆ doTestDoQuickOperations()

FileBackendTest::doTestDoQuickOperations ( )
private

◆ doTestGetDirectoryList()

FileBackendTest::doTestGetDirectoryList ( )
private

◆ doTestGetFileContents()

FileBackendTest::doTestGetFileContents (   $source,
  $content 
)
private

Definition at line 1216 of file FileBackendTest.php.

References $path, $source, array(), as, assertGoodStatus(), backendClass(), and prepare().

Referenced by testGetFileContents().

◆ doTestGetFileHttpUrl()

FileBackendTest::doTestGetFileHttpUrl (   $source,
  $content 
)
private

◆ doTestGetFileList()

FileBackendTest::doTestGetFileList ( )
private

◆ doTestGetFileStat()

FileBackendTest::doTestGetFileStat (   $path,
  $content,
  $alreadyExists 
)
private

◆ doTestGetLocalCopy()

FileBackendTest::doTestGetLocalCopy (   $source,
  $content 
)
private

◆ doTestGetLocalCopyAndReference404()

FileBackendTest::doTestGetLocalCopyAndReference404 ( )

Definition at line 1413 of file FileBackendTest.php.

References array(), backendClass(), and baseStorePath().

Referenced by testGetLocalCopyAndReference404().

◆ doTestGetLocalReference()

FileBackendTest::doTestGetLocalReference (   $source,
  $content 
)
private

◆ doTestLockCalls()

FileBackendTest::doTestLockCalls ( )
private

◆ doTestMove()

FileBackendTest::doTestMove (   $op)
private

◆ doTestPrepareAndClean()

FileBackendTest::doTestPrepareAndClean (   $path,
  $isOK 
)
private

Definition at line 1498 of file FileBackendTest.php.

References $path, array(), assertGoodStatus(), backendClass(), and prepare().

Referenced by testPrepareAndClean().

◆ doTestRecursiveClean()

FileBackendTest::doTestRecursiveClean ( )
private

◆ doTestStore()

FileBackendTest::doTestStore (   $op)
private

◆ doTestStreamFile()

FileBackendTest::doTestStreamFile (   $path,
  $content 
)
private

Definition at line 1159 of file FileBackendTest.php.

References $path, array(), assertGoodStatus(), backendClass(), create(), and prepare().

Referenced by testStreamFile().

◆ listToArray()

FileBackendTest::listToArray (   $iter)
private

Definition at line 2355 of file FileBackendTest.php.

Referenced by doTestGetDirectoryList(), and doTestGetFileList().

◆ prepare()

◆ provider_normalizeStoragePath()

static FileBackendTest::provider_normalizeStoragePath ( )
static

Definition at line 149 of file FileBackendTest.php.

References array().

◆ provider_testConcatenate()

static FileBackendTest::provider_testConcatenate ( )
static

Definition at line 1022 of file FileBackendTest.php.

References $params, array(), and wfTempDir().

◆ provider_testCopy()

static FileBackendTest::provider_testCopy ( )
static

Definition at line 370 of file FileBackendTest.php.

References $source, array(), and baseStorePath().

◆ provider_testCreate()

static FileBackendTest::provider_testCreate ( )
static

@dataProvider provider_testCreate

Definition at line 801 of file FileBackendTest.php.

References array(), and baseStorePath().

◆ provider_testDelete()

static FileBackendTest::provider_testDelete ( )
static

Definition at line 596 of file FileBackendTest.php.

References $source, array(), and baseStorePath().

◆ provider_testDescribe()

static FileBackendTest::provider_testDescribe ( )
static

Definition at line 710 of file FileBackendTest.php.

References $source, array(), and baseStorePath().

◆ provider_testExtensionFromPath()

static FileBackendTest::provider_testExtensionFromPath ( )
static

Definition at line 198 of file FileBackendTest.php.

References array().

◆ provider_testGetFileContents()

static FileBackendTest::provider_testGetFileContents ( )
static

Definition at line 1245 of file FileBackendTest.php.

References array(), and baseStorePath().

◆ provider_testGetFileHttpUrl()

static FileBackendTest::provider_testGetFileHttpUrl ( )
static

Definition at line 1461 of file FileBackendTest.php.

References array(), and baseStorePath().

◆ provider_testGetFileStat()

static FileBackendTest::provider_testGetFileStat ( )
static

Definition at line 1137 of file FileBackendTest.php.

References array(), and baseStorePath().

◆ provider_testGetLocalCopy()

static FileBackendTest::provider_testGetLocalCopy ( )
static

Definition at line 1314 of file FileBackendTest.php.

References array(), and baseStorePath().

◆ provider_testGetLocalReference()

static FileBackendTest::provider_testGetLocalReference ( )
static

Definition at line 1381 of file FileBackendTest.php.

References array(), and baseStorePath().

◆ provider_testIsStoragePath()

static FileBackendTest::provider_testIsStoragePath ( )
static

Definition at line 99 of file FileBackendTest.php.

References array().

◆ provider_testMove()

static FileBackendTest::provider_testMove ( )
static

Definition at line 492 of file FileBackendTest.php.

References $source, array(), and baseStorePath().

◆ provider_testParentStoragePath()

static FileBackendTest::provider_testParentStoragePath ( )
static

Definition at line 176 of file FileBackendTest.php.

References array().

◆ provider_testPrepareAndClean()

static FileBackendTest::provider_testPrepareAndClean ( )
static

Definition at line 1487 of file FileBackendTest.php.

References array(), and baseStorePath().

◆ provider_testSplitStoragePath()

static FileBackendTest::provider_testSplitStoragePath ( )
static

Definition at line 124 of file FileBackendTest.php.

References array().

◆ provider_testStore()

static FileBackendTest::provider_testStore ( )
static

Definition at line 266 of file FileBackendTest.php.

References array(), baseStorePath(), and TempFSFile\factory().

◆ provider_testStreamFile()

static FileBackendTest::provider_testStreamFile ( )
static

Definition at line 1189 of file FileBackendTest.php.

References array(), and baseStorePath().

◆ setUp()

FileBackendTest::setUp ( )
protected

◆ tearDownFiles()

◆ testConcatenate()

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

@dataProvider provider_testConcatenate

Definition at line 943 of file FileBackendTest.php.

References $multiBackend, $singleBackend, doTestConcatenate(), file, and tearDownFiles().

◆ testCopy()

FileBackendTest::testCopy (   $op)

@dataProvider provider_testCopy @covers FileBackend::doOperation

Definition at line 301 of file FileBackendTest.php.

References $multiBackend, $singleBackend, doTestCopy(), and tearDownFiles().

◆ testCreate()

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

@dataProvider provider_testCreate @covers FileBackend::doOperation

Definition at line 736 of file FileBackendTest.php.

References $multiBackend, $singleBackend, doTestCreate(), and tearDownFiles().

◆ testDelete()

FileBackendTest::testDelete (   $op,
  $withSource,
  $okStatus 
)

@dataProvider provider_testDelete @covers FileBackend::doOperation

Definition at line 544 of file FileBackendTest.php.

References $multiBackend, $singleBackend, doTestDelete(), and tearDownFiles().

◆ testDescribe()

FileBackendTest::testDescribe (   $op,
  $withSource,
  $okStatus 
)

@dataProvider provider_testDescribe @covers FileBackend::doOperation

Definition at line 636 of file FileBackendTest.php.

References $multiBackend, $singleBackend, doTestDescribe(), and tearDownFiles().

◆ testDoOperations()

FileBackendTest::testDoOperations ( )

◆ testDoOperationsFailing()

FileBackendTest::testDoOperationsFailing ( )

◆ testDoOperationsPipeline()

FileBackendTest::testDoOperationsPipeline ( )

◆ testDoQuickOperations()

FileBackendTest::testDoQuickOperations ( )

◆ testExtensionFromPath()

FileBackendTest::testExtensionFromPath (   $path,
  $res 
)

@dataProvider provider_testExtensionFromPath @covers FileBackend::extensionFromPath

Definition at line 193 of file FileBackendTest.php.

References $path, $res, and FileBackend\extensionFromPath().

◆ testGetDirectoryList()

FileBackendTest::testGetDirectoryList ( )

◆ testGetFileContents()

FileBackendTest::testGetFileContents (   $source,
  $content 
)

@dataProvider provider_testGetFileContents @covers FileBackend::getFileContents @covers FileBackend::getFileContentsMulti

Definition at line 1204 of file FileBackendTest.php.

References $multiBackend, $singleBackend, $source, doTestGetFileContents(), and tearDownFiles().

◆ testGetFileHttpUrl()

FileBackendTest::testGetFileHttpUrl (   $source,
  $content 
)

@dataProvider provider_testGetFileHttpUrl @covers FileBackend::getFileHttpUrl

Definition at line 1431 of file FileBackendTest.php.

References $multiBackend, $singleBackend, $source, doTestGetFileHttpUrl(), and tearDownFiles().

◆ testGetFileList()

FileBackendTest::testGetFileList ( )

◆ testGetFileStat()

FileBackendTest::testGetFileStat (   $path,
  $content,
  $alreadyExists 
)

@dataProvider provider_testGetFileStat @covers FileBackend::getFileStat

Definition at line 1076 of file FileBackendTest.php.

References $multiBackend, $path, $singleBackend, doTestGetFileStat(), and tearDownFiles().

◆ testGetLocalCopy()

FileBackendTest::testGetLocalCopy (   $source,
  $content 
)

@dataProvider provider_testGetLocalCopy @covers FileBackend::getLocalCopy

Definition at line 1264 of file FileBackendTest.php.

References $multiBackend, $singleBackend, $source, doTestGetLocalCopy(), and tearDownFiles().

◆ testGetLocalCopyAndReference404()

FileBackendTest::testGetLocalCopyAndReference404 ( )

◆ testGetLocalReference()

FileBackendTest::testGetLocalReference (   $source,
  $content 
)

@dataProvider provider_testGetLocalReference @covers FileBackend::getLocalReference

Definition at line 1334 of file FileBackendTest.php.

References $multiBackend, $singleBackend, $source, doTestGetLocalReference(), and tearDownFiles().

◆ testIsStoragePath()

FileBackendTest::testIsStoragePath (   $path,
  $isStorePath 
)

@dataProvider provider_testIsStoragePath @covers FileBackend::isStoragePath

Definition at line 94 of file FileBackendTest.php.

References $path, and FileBackend\isStoragePath().

◆ testLockCalls()

FileBackendTest::testLockCalls ( )

@covers FileBackend::lockFiles @covers FileBackend::unlockFiles

Definition at line 2253 of file FileBackendTest.php.

References $singleBackend, and doTestLockCalls().

◆ testMove()

FileBackendTest::testMove (   $op)

@dataProvider provider_testMove @covers FileBackend::doOperation

Definition at line 422 of file FileBackendTest.php.

References $multiBackend, $singleBackend, doTestMove(), and tearDownFiles().

◆ testNormalizeStoragePath()

FileBackendTest::testNormalizeStoragePath (   $path,
  $res 
)

@dataProvider provider_normalizeStoragePath @covers FileBackend::normalizeStoragePath

Definition at line 144 of file FileBackendTest.php.

References $path, $res, and FileBackend\normalizeStoragePath().

◆ testParentStoragePath()

FileBackendTest::testParentStoragePath (   $path,
  $res 
)

@dataProvider provider_testParentStoragePath @covers FileBackend::parentStoragePath

Definition at line 171 of file FileBackendTest.php.

References $path, $res, and FileBackend\parentStoragePath().

◆ testPrepareAndClean()

FileBackendTest::testPrepareAndClean (   $path,
  $isOK 
)

@dataProvider provider_testPrepareAndClean @covers FileBackend::prepare @covers FileBackend::clean

Definition at line 1477 of file FileBackendTest.php.

References $multiBackend, $path, $singleBackend, doTestPrepareAndClean(), and tearDownFiles().

◆ testRecursiveClean()

FileBackendTest::testRecursiveClean ( )

◆ testSplitStoragePath()

FileBackendTest::testSplitStoragePath (   $path,
  $res 
)

@dataProvider provider_testSplitStoragePath @covers FileBackend::splitStoragePath

Definition at line 119 of file FileBackendTest.php.

References $path, $res, and FileBackend\splitStoragePath().

◆ testStore()

FileBackendTest::testStore (   $op)

@dataProvider provider_testStore

Definition at line 210 of file FileBackendTest.php.

References $multiBackend, $singleBackend, doTestStore(), file, and tearDownFiles().

◆ testStreamFile()

FileBackendTest::testStreamFile (   $path,
  $content,
  $alreadyExists 
)

@dataProvider provider_testGetFileStat @covers FileBackend::streamFile

Definition at line 1152 of file FileBackendTest.php.

References $path, $singleBackend, doTestStreamFile(), and tearDownFiles().

Member Data Documentation

◆ $backend

FileBackend FileBackendTest::$backend
private

Definition at line 10 of file FileBackendTest.php.

◆ $backendToUse

FileBackendTest::$backendToUse
staticprivate

Definition at line 14 of file FileBackendTest.php.

Referenced by setUp().

◆ $filesToPrune

FileBackendTest::$filesToPrune = array()
private

Definition at line 13 of file FileBackendTest.php.

◆ $multiBackend

◆ $singleBackend


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