DirectoryIterationTestCase
extends vfsStreamWrapperBaseTestCase
in package
Test for directory iteration.
Tags
Table of Contents
- $bar : vfsStreamDirectory
- sub directory
- $barURL : string
- URL of sub directory
- $baz1 : vfsStreamFile
- a file
- $baz1URL : string
- URL of file 1
- $baz2 : vfsStreamFile
- another file
- $baz2URL : string
- URL of file 2
- $foo : vfsStreamDirectory
- root directory
- $fooURL : string
- URL of root directory
- bc_expectException() : mixed
- bc_getMock() : mixed
- directoryIteration() : mixed
- directoryIteration_Bug_4() : mixed
- assure that a directory iteration works as expected
- directoryIterationShouldBeIndependent() : mixed
- assure that a directory iteration works as expected
- directoryIterationWithDot() : mixed
- directoryIterationWithOpenDir_Bug_2() : mixed
- assure that a directory iteration works as expected
- provideSwitchWithExpectations() : array<string|int, mixed>
- recursiveDirectoryIterationWithDotsDisabled() : mixed
- recursiveDirectoryIterationWithDotsEnabled() : mixed
- setUp() : mixed
- set up test environment
- tearDown() : mixed
- clean up test environment
- assertDirectoryCount() : mixed
- assertion for directoy count
Properties
$bar
sub directory
protected
vfsStreamDirectory
$bar
$barURL
URL of sub directory
protected
string
$barURL
$baz1
a file
protected
vfsStreamFile
$baz1
$baz1URL
URL of file 1
protected
string
$baz1URL
$baz2
another file
protected
vfsStreamFile
$baz2
$baz2URL
URL of file 2
protected
string
$baz2URL
$foo
root directory
protected
vfsStreamDirectory
$foo
$fooURL
URL of root directory
protected
string
$fooURL
Methods
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 —directoryIteration()
public
directoryIteration(Closure $dotFilesSwitch, array<string|int, string> $expectedDirectories) : mixed
Parameters
- $dotFilesSwitch : Closure
- $expectedDirectories : array<string|int, string>
Tags
Return values
mixed —directoryIteration_Bug_4()
assure that a directory iteration works as expected
public
directoryIteration_Bug_4(Closure $dotFilesSwitch, array<string|int, string> $expectedDirectories) : mixed
Parameters
- $dotFilesSwitch : Closure
- $expectedDirectories : array<string|int, string>
Tags
Return values
mixed —directoryIterationShouldBeIndependent()
assure that a directory iteration works as expected
public
directoryIterationShouldBeIndependent(Closure $dotFilesSwitch, array<string|int, string> $expectedDirectories) : mixed
Parameters
- $dotFilesSwitch : Closure
- $expectedDirectories : array<string|int, string>
Tags
Return values
mixed —directoryIterationWithDot()
public
directoryIterationWithDot(Closure $dotFilesSwitch, array<string|int, string> $expectedDirectories) : mixed
Parameters
- $dotFilesSwitch : Closure
- $expectedDirectories : array<string|int, string>
Tags
Return values
mixed —directoryIterationWithOpenDir_Bug_2()
assure that a directory iteration works as expected
public
directoryIterationWithOpenDir_Bug_2(Closure $dotFilesSwitch, array<string|int, string> $expectedDirectories) : mixed
Parameters
- $dotFilesSwitch : Closure
- $expectedDirectories : array<string|int, string>
Tags
Return values
mixed —provideSwitchWithExpectations()
public
provideSwitchWithExpectations() : array<string|int, mixed>
Return values
array<string|int, mixed> —recursiveDirectoryIterationWithDotsDisabled()
public
recursiveDirectoryIterationWithDotsDisabled() : mixed
Tags
Return values
mixed —recursiveDirectoryIterationWithDotsEnabled()
public
recursiveDirectoryIterationWithDotsEnabled() : mixed
Tags
Return values
mixed —setUp()
set up test environment
public
setUp() : mixed
Return values
mixed —tearDown()
clean up test environment
public
tearDown() : mixed
Return values
mixed —assertDirectoryCount()
assertion for directoy count
private
assertDirectoryCount(int $expectedCount, int $actualCount) : mixed
Parameters
- $expectedCount : int
- $actualCount : int