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
$dir
instance to test
protected
vfsStreamDirectory
$dir
Methods
addChildReplacesChildWithSameName_Bug_5()
dd
public
addChildReplacesChildWithSameName_Bug_5() : mixed
Tags
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
Return values
mixed —childHandlingWithSubdirectory()
test that adding, handling and removing of a child works as expected
public
childHandlingWithSubdirectory() : mixed
Tags
Return values
mixed —defaultValues()
test default values and methods
public
defaultValues() : mixed
Tags
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
Return values
mixed —getChildReturnsNullForNonExistingChild()
public
getChildReturnsNullForNonExistingChild() : mixed
Tags
Return values
mixed —group()
setting and retrieving owner group of a file
public
group() : mixed
Tags
Return values
mixed —hasChildrenReturnsTrueIfAtLeastOneChildPresent()
public
hasChildrenReturnsTrueIfAtLeastOneChildPresent() : mixed
Tags
Return values
mixed —hasChildReturnsFalseForNonExistingChild()
public
hasChildReturnsFalseForNonExistingChild() : mixed
Tags
Return values
mixed —hasNoChildrenByDefault()
public
hasNoChildrenByDefault() : mixed
Tags
Return values
mixed —invalidCharacterInName()
assure that a directory seperator inside the name throws an exception
public
invalidCharacterInName() : mixed
Tags
Return values
mixed —nonExistingChild()
public
nonExistingChild() : mixed
Tags
Return values
mixed —owner()
setting and retrieving owner of a file
public
owner() : mixed
Tags
Return values
mixed —permissions()
setting and retrieving permissions for a directory
public
permissions() : mixed
Tags
Return values
mixed —permissionsSet()
setting and retrieving permissions for a directory
public
permissionsSet() : mixed
Tags
Return values
mixed —removeChildReturnsFalseForNonExistingChild()
public
removeChildReturnsFalseForNonExistingChild() : mixed
Tags
Return values
mixed —rename()
test renaming the directory
public
rename() : mixed
Tags
Return values
mixed —renameToInvalidNameThrowsvfsStreamException()
renaming the directory to an invalid name throws a vfsStreamException
public
renameToInvalidNameThrowsvfsStreamException() : mixed
Tags
Return values
mixed —setUp()
set up test environment
public
setUp() : mixed