Documentation

vfsStreamDirectoryTestCase extends BC_PHPUnit_Framework_TestCase
in package

Test for org\bovigo\vfs\vfsStreamDirectory.

Table of Contents

$dir  : vfsStreamDirectory
instance to test
addChildReplacesChildWithSameName_Bug_5()  : mixed
dd
bc_expectException()  : mixed
bc_getMock()  : mixed
childHandling()  : mixed
test that adding, handling and removing of a child works as expected
childHandlingWithSubdirectory()  : mixed
test that adding, handling and removing of a child works as expected
defaultValues()  : mixed
test default values and methods
explicitTestForSeparatorWithNestedPaths_Bug_24()  : mixed
When testing for a nested path, verify that directory separators are respected properly so that subdir1/subdir2 is not considered equal to subdir1Xsubdir2.
getChildReturnsNullForNonExistingChild()  : mixed
group()  : mixed
setting and retrieving owner group of a file
hasChildrenReturnsTrueIfAtLeastOneChildPresent()  : mixed
hasChildReturnsFalseForNonExistingChild()  : mixed
hasNoChildrenByDefault()  : mixed
invalidCharacterInName()  : mixed
assure that a directory seperator inside the name throws an exception
nonExistingChild()  : mixed
owner()  : mixed
setting and retrieving owner of a file
permissions()  : mixed
setting and retrieving permissions for a directory
permissionsSet()  : mixed
setting and retrieving permissions for a directory
removeChildReturnsFalseForNonExistingChild()  : mixed
rename()  : mixed
test renaming the directory
renameToInvalidNameThrowsvfsStreamException()  : mixed
renaming the directory to an invalid name throws a vfsStreamException
setUp()  : mixed
set up test environment

Properties

Methods

addChildReplacesChildWithSameName_Bug_5()

dd

public addChildReplacesChildWithSameName_Bug_5() : mixed
Tags
test
group

regression

group

bug_5

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

childHandling()

test that adding, handling and removing of a child works as expected

public childHandling() : mixed
Tags
test
Return values
mixed

childHandlingWithSubdirectory()

test that adding, handling and removing of a child works as expected

public childHandlingWithSubdirectory() : mixed
Tags
test
Return values
mixed

defaultValues()

test default values and methods

public defaultValues() : mixed
Tags
test
Return values
mixed

explicitTestForSeparatorWithNestedPaths_Bug_24()

When testing for a nested path, verify that directory separators are respected properly so that subdir1/subdir2 is not considered equal to subdir1Xsubdir2.

public explicitTestForSeparatorWithNestedPaths_Bug_24() : mixed
Tags
test
group

bug_24

group

regression

Return values
mixed

getChildReturnsNullForNonExistingChild()

public getChildReturnsNullForNonExistingChild() : mixed
Tags
test
Return values
mixed

group()

setting and retrieving owner group of a file

public group() : mixed
Tags
test
group

permissions

Return values
mixed

hasChildrenReturnsTrueIfAtLeastOneChildPresent()

public hasChildrenReturnsTrueIfAtLeastOneChildPresent() : mixed
Tags
test
since
0.10.0
Return values
mixed

hasChildReturnsFalseForNonExistingChild()

public hasChildReturnsFalseForNonExistingChild() : mixed
Tags
test
Return values
mixed

invalidCharacterInName()

assure that a directory seperator inside the name throws an exception

public invalidCharacterInName() : mixed
Tags
test
expectedException

org\bovigo\vfs\vfsStreamException

Return values
mixed

owner()

setting and retrieving owner of a file

public owner() : mixed
Tags
test
group

permissions

Return values
mixed

permissions()

setting and retrieving permissions for a directory

public permissions() : mixed
Tags
test
group

permissions

Return values
mixed

permissionsSet()

setting and retrieving permissions for a directory

public permissionsSet() : mixed
Tags
test
group

permissions

Return values
mixed

removeChildReturnsFalseForNonExistingChild()

public removeChildReturnsFalseForNonExistingChild() : mixed
Tags
test
Return values
mixed

renameToInvalidNameThrowsvfsStreamException()

renaming the directory to an invalid name throws a vfsStreamException

public renameToInvalidNameThrowsvfsStreamException() : mixed
Tags
test
expectedException

org\bovigo\vfs\vfsStreamException

Return values
mixed

Search results