Documentation

vfsStreamTestCase extends BC_PHPUnit_Framework_TestCase
in package

Test for org\bovigo\vfs\vfsStream.

Table of Contents

addStructureHandlesVfsStreamFileObjects()  : mixed
bc_expectException()  : mixed
bc_getMock()  : mixed
copyFromEmptyFolder()  : mixed
copyFromEmptyFolderWithRoot()  : mixed
copyFromFileSystemMocksLargeFiles()  : mixed
To test this the max file size is reduced to something reproduceable.
copyFromFileSystemThrowsExceptionIfNoBaseDirGivenAndNoRootSet()  : mixed
copyFromPreservesFilePermissions()  : mixed
copyFromWithSubFolders()  : mixed
copyFromWithSubFoldersWithRoot()  : mixed
createArraysAreTurnedIntoSubdirectories()  : mixed
createArraysAreTurnedIntoSubdirectoriesOfRoot()  : mixed
createCastsNumericDirectoriesToStrings()  : mixed
createCastsNumericDirectoriesToStringsWithRoot()  : mixed
createDirectoryWithTrailingSlashShouldNotCreateSubdirectoryWithEmptyName()  : mixed
createHandlesLargeFileContentObjects()  : mixed
createStringsAreTurnedIntoFilesWithContent()  : mixed
createStringsAreTurnedIntoFilesWithContentWithRoot()  : mixed
createThrowsExceptionIfNoBaseDirGivenAndNoRootSet()  : mixed
createWorksRecursively()  : mixed
createWorksRecursivelyWithRoot()  : mixed
inspectWithContentGivesContentToVisitor()  : mixed
inspectWithoutContentAndWithoutRootThrowsInvalidArgumentException()  : mixed
inspectWithoutContentGivesRootToVisitor()  : mixed
newDirectoryStructure()  : mixed
test to create a new directory structure
newDirectoryWithSlashAtStart()  : mixed
test that correct directory structure is created
newFile()  : mixed
test to create a new file
newFileWithDifferentPermissions()  : mixed
test to create a new file with non-default permissions
newSingleDirectory()  : mixed
test to create a new directory structure
newSingleDirectoryWithDifferentPermissions()  : mixed
test to create a new directory structure with non-default permissions
path()  : mixed
assure that url2path conversion works correct
pathConvertsWindowsDirectorySeparators()  : mixed
windows directory separators are converted into default separator
pathRemovesDoubleSlashes()  : mixed
double slashes should be replaced by single slash
pathRemovesTrailingSlash()  : mixed
trailing slashes are removed
pathRemovesTrailingSlashAndWhitespace()  : mixed
trailing slash and whitespace should be removed
pathRemovesTrailingWhitespace()  : mixed
trailing whitespace should be removed
setUp()  : mixed
set up test environment
setupArraysAreTurnedIntoSubdirectories()  : mixed
setupCastsNumericDirectoriesToStrings()  : mixed
setupRegistersStreamWrapperAndCreatesRootDirectoryWithDefaultNameAndPermissions()  : mixed
setupRegistersStreamWrapperAndCreatesRootDirectoryWithGivenNameAndDefaultPermissions()  : mixed
setupRegistersStreamWrapperAndCreatesRootDirectoryWithGivenNameAndPermissions()  : mixed
setupStringsAreTurnedIntoFilesWithContent()  : mixed
setupWithEmptyArrayIsEqualToSetup()  : mixed
setupWorksRecursively()  : mixed
url()  : mixed
assure that path2url conversion works correct
assertVfsFile()  : mixed
helper function for assertions on vfsStreamFile
getFileSystemCopyDir()  : string
returns path to file system copy resource directory

Methods

addStructureHandlesVfsStreamFileObjects()

public addStructureHandlesVfsStreamFileObjects() : mixed
Tags
test
group

issue_149

Return values
mixed

bc_expectException()

public bc_expectException(mixed $exception) : mixed
Parameters
$exception : mixed
Return values
mixed

bc_getMock()

public bc_getMock(mixed $originalClassName[, mixed $methods = array() ][, array<string|int, mixed> $arguments = array() ][, mixed $mockClassName = '' ][, mixed $callOriginalConstructor = true ][, mixed $callOriginalClone = true ][, mixed $callAutoload = true ][, mixed $cloneArguments = false ][, mixed $callOriginalMethods = false ][, mixed $proxyTarget = null ]) : mixed
Parameters
$originalClassName : mixed
$methods : mixed = array()
$arguments : array<string|int, mixed> = array()
$mockClassName : mixed = ''
$callOriginalConstructor : mixed = true
$callOriginalClone : mixed = true
$callAutoload : mixed = true
$cloneArguments : mixed = false
$callOriginalMethods : mixed = false
$proxyTarget : mixed = null
Return values
mixed

copyFromEmptyFolder()

public copyFromEmptyFolder() : mixed
Tags
test
group

issue_4

since
0.11.0
Return values
mixed

copyFromEmptyFolderWithRoot()

public copyFromEmptyFolderWithRoot() : mixed
Tags
test
group

issue_4

since
0.11.0
Return values
mixed

copyFromFileSystemMocksLargeFiles()

To test this the max file size is reduced to something reproduceable.

public copyFromFileSystemMocksLargeFiles() : mixed
Tags
test
group

issue_91

since
1.5.0
Return values
mixed

copyFromFileSystemThrowsExceptionIfNoBaseDirGivenAndNoRootSet()

public copyFromFileSystemThrowsExceptionIfNoBaseDirGivenAndNoRootSet() : mixed
Tags
test
group

issue_4

expectedException

\InvalidArgumentException

since
0.11.0
Return values
mixed

copyFromPreservesFilePermissions()

public copyFromPreservesFilePermissions() : mixed
Tags
test
group

issue_4

group

issue_29

since
0.11.2
Return values
mixed

copyFromWithSubFolders()

public copyFromWithSubFolders() : mixed
Tags
test
group

issue_4

since
0.11.0
Return values
mixed

copyFromWithSubFoldersWithRoot()

public copyFromWithSubFoldersWithRoot() : mixed
Tags
test
group

issue_4

since
0.11.0
Return values
mixed

createArraysAreTurnedIntoSubdirectories()

public createArraysAreTurnedIntoSubdirectories() : mixed
Tags
test
group

issue_20

since
0.11.0
Return values
mixed

createArraysAreTurnedIntoSubdirectoriesOfRoot()

public createArraysAreTurnedIntoSubdirectoriesOfRoot() : mixed
Tags
test
group

issue_20

since
0.11.0
Return values
mixed

createCastsNumericDirectoriesToStrings()

public createCastsNumericDirectoriesToStrings() : mixed
Tags
test
group

issue_20

since
0.11.0
Return values
mixed

createCastsNumericDirectoriesToStringsWithRoot()

public createCastsNumericDirectoriesToStringsWithRoot() : mixed
Tags
test
group

issue_20

since
0.11.0
Return values
mixed

createDirectoryWithTrailingSlashShouldNotCreateSubdirectoryWithEmptyName()

public createDirectoryWithTrailingSlashShouldNotCreateSubdirectoryWithEmptyName() : mixed
Tags
test
group

issue_121

since
1.6.1
Return values
mixed

createHandlesLargeFileContentObjects()

public createHandlesLargeFileContentObjects() : mixed
Tags
test
group

issue_149

Return values
mixed

createStringsAreTurnedIntoFilesWithContent()

public createStringsAreTurnedIntoFilesWithContent() : mixed
Tags
test
group

issue_20

since
0.10.0
Return values
mixed

createStringsAreTurnedIntoFilesWithContentWithRoot()

public createStringsAreTurnedIntoFilesWithContentWithRoot() : mixed
Tags
test
group

issue_20

since
0.11.0
Return values
mixed

createThrowsExceptionIfNoBaseDirGivenAndNoRootSet()

public createThrowsExceptionIfNoBaseDirGivenAndNoRootSet() : mixed
Tags
test
group

issue_20

expectedException

\InvalidArgumentException

since
0.11.0
Return values
mixed

createWorksRecursively()

public createWorksRecursively() : mixed
Tags
test
group

issue_20

since
0.11.0
Return values
mixed

createWorksRecursivelyWithRoot()

public createWorksRecursivelyWithRoot() : mixed
Tags
test
group

issue_20

since
0.11.0
Return values
mixed

inspectWithContentGivesContentToVisitor()

public inspectWithContentGivesContentToVisitor() : mixed
Tags
test
group

issue_10

since
0.10.0
Return values
mixed

inspectWithoutContentAndWithoutRootThrowsInvalidArgumentException()

public inspectWithoutContentAndWithoutRootThrowsInvalidArgumentException() : mixed
Tags
test
group

issue_10

expectedException

\InvalidArgumentException

since
0.10.0
Return values
mixed

inspectWithoutContentGivesRootToVisitor()

public inspectWithoutContentGivesRootToVisitor() : mixed
Tags
test
group

issue_10

since
0.10.0
Return values
mixed

newDirectoryStructure()

test to create a new directory structure

public newDirectoryStructure() : mixed
Tags
test
Return values
mixed

newDirectoryWithSlashAtStart()

test that correct directory structure is created

public newDirectoryWithSlashAtStart() : mixed
Tags
test
Return values
mixed

newFile()

test to create a new file

public newFile() : mixed
Tags
test
Return values
mixed

newFileWithDifferentPermissions()

test to create a new file with non-default permissions

public newFileWithDifferentPermissions() : mixed
Tags
test
group

permissions

Return values
mixed

newSingleDirectory()

test to create a new directory structure

public newSingleDirectory() : mixed
Tags
test
Return values
mixed

newSingleDirectoryWithDifferentPermissions()

test to create a new directory structure with non-default permissions

public newSingleDirectoryWithDifferentPermissions() : mixed
Tags
test
group

permissions

Return values
mixed

path()

assure that url2path conversion works correct

public path() : mixed
Tags
test
Return values
mixed

pathConvertsWindowsDirectorySeparators()

windows directory separators are converted into default separator

public pathConvertsWindowsDirectorySeparators() : mixed
Tags
author

Gabriel Birke

test
Return values
mixed

pathRemovesDoubleSlashes()

double slashes should be replaced by single slash

public pathRemovesDoubleSlashes() : mixed
Tags
author

Gabriel Birke

test
Return values
mixed

pathRemovesTrailingSlash()

trailing slashes are removed

public pathRemovesTrailingSlash() : mixed
Tags
author

Gabriel Birke

test
Return values
mixed

pathRemovesTrailingSlashAndWhitespace()

trailing slash and whitespace should be removed

public pathRemovesTrailingSlashAndWhitespace() : mixed
Tags
author

Gabriel Birke

test
Return values
mixed

pathRemovesTrailingWhitespace()

trailing whitespace should be removed

public pathRemovesTrailingWhitespace() : mixed
Tags
author

Gabriel Birke

test
Return values
mixed

setUp()

set up test environment

public setUp() : mixed
Return values
mixed

setupArraysAreTurnedIntoSubdirectories()

public setupArraysAreTurnedIntoSubdirectories() : mixed
Tags
test
group

issue_14

group

issue_20

since
0.10.0
Return values
mixed

setupCastsNumericDirectoriesToStrings()

public setupCastsNumericDirectoriesToStrings() : mixed
Tags
test
group

issue_17

group

issue_20

Return values
mixed

setupRegistersStreamWrapperAndCreatesRootDirectoryWithDefaultNameAndPermissions()

public setupRegistersStreamWrapperAndCreatesRootDirectoryWithDefaultNameAndPermissions() : mixed
Tags
test
group

setup

since
0.7.0
Return values
mixed

setupRegistersStreamWrapperAndCreatesRootDirectoryWithGivenNameAndDefaultPermissions()

public setupRegistersStreamWrapperAndCreatesRootDirectoryWithGivenNameAndDefaultPermissions() : mixed
Tags
test
group

setup

since
0.7.0
Return values
mixed

setupRegistersStreamWrapperAndCreatesRootDirectoryWithGivenNameAndPermissions()

public setupRegistersStreamWrapperAndCreatesRootDirectoryWithGivenNameAndPermissions() : mixed
Tags
test
group

setup

since
0.7.0
Return values
mixed

setupStringsAreTurnedIntoFilesWithContent()

public setupStringsAreTurnedIntoFilesWithContent() : mixed
Tags
test
group

issue_14

group

issue_20

since
0.10.0
Return values
mixed

setupWithEmptyArrayIsEqualToSetup()

public setupWithEmptyArrayIsEqualToSetup() : mixed
Tags
test
group

issue_14

group

issue_20

since
0.10.0
Return values
mixed

setupWorksRecursively()

public setupWorksRecursively() : mixed
Tags
test
group

issue_14

group

issue_20

since
0.10.0
Return values
mixed

url()

assure that path2url conversion works correct

public url() : mixed
Tags
test
Return values
mixed

assertVfsFile()

helper function for assertions on vfsStreamFile

protected assertVfsFile(vfsStreamFile $file, string $content) : mixed
Parameters
$file : vfsStreamFile
$content : string
Return values
mixed

getFileSystemCopyDir()

returns path to file system copy resource directory

protected getFileSystemCopyDir() : string
Return values
string

Search results