Documentation

FinderTest extends TestCase
in package

Test case for Finder

Tags
coversDefaultClass

Flyfinder\Finder

Table of Contents

$fixture  : Finder
setUp()  : void
Initializes the fixture for this test.
tearDown()  : void
testGetMethod()  : void
testGlobSubtreePruning()  : void
testIfCorrectFilesAreBeingYielded()  : void
testIfDoubleNotHiddenLetsSubpathsThrough()  : void
testIfNegatedAndCullsExactMatches()  : void
testIfNegatedOrCullsExactMatches()  : void
testIfNeitherHiddenNorExtLetsSubpathsThrough()  : void
testIfNotHiddenLetsSubpathsThrough()  : void
testSubtreePruningOptimization()  : void
generatorToFileList()  : array<string|int, string>
mockFileSystem()  : FilesystemInterface
mockFileTree()  : array<string|int, mixed>
mockListContents()  : array<string|int, mixed>

Properties

Methods

setUp()

Initializes the fixture for this test.

public setUp() : void
Return values
void

tearDown()

public tearDown() : void
Return values
void

testGetMethod()

public testGetMethod() : void
Tags
covers
Return values
void

testGlobSubtreePruning()

public testGlobSubtreePruning() : void
Return values
void

testIfCorrectFilesAreBeingYielded()

public testIfCorrectFilesAreBeingYielded() : void
Tags
covers
covers
covers

::

Return values
void

testIfDoubleNotHiddenLetsSubpathsThrough()

public testIfDoubleNotHiddenLetsSubpathsThrough() : void
Return values
void

testIfNegatedAndCullsExactMatches()

public testIfNegatedAndCullsExactMatches() : void
Return values
void

testIfNegatedOrCullsExactMatches()

public testIfNegatedOrCullsExactMatches() : void
Return values
void

testIfNeitherHiddenNorExtLetsSubpathsThrough()

public testIfNeitherHiddenNorExtLetsSubpathsThrough() : void
Return values
void

testIfNotHiddenLetsSubpathsThrough()

public testIfNotHiddenLetsSubpathsThrough() : void
Return values
void

testSubtreePruningOptimization()

public testSubtreePruningOptimization() : void
Return values
void

generatorToFileList()

protected generatorToFileList(Generator $generator) : array<string|int, string>
Parameters
$generator : Generator
Return values
array<string|int, string>

mockFileSystem()

protected mockFileSystem(array<string|int, string> $paths[, array<string|int, string> $pathsThatShouldNotBeListed = [] ]) : FilesystemInterface
Parameters
$paths : array<string|int, string>
$pathsThatShouldNotBeListed : array<string|int, string> = []
Return values
FilesystemInterface

mockFileTree()

protected mockFileTree(array<string|int, string> $pathList) : array<string|int, mixed>
Parameters
$pathList : array<string|int, string>
Return values
array<string|int, mixed>

mockListContents()

protected mockListContents(array<string|int, mixed> $fileTreeMock, string $path) : array<string|int, mixed>
Parameters
$fileTreeMock : array<string|int, mixed>
$path : string
Return values
array<string|int, mixed>

Search results