FinderTest
extends RealIteratorTestCase
in package
Table of Contents
Properties
Methods
- getContainsTestData() : mixed
- getRegexNameTestData() : mixed
- getTestPathData() : mixed
- setUpBeforeClass() : mixed
- tearDownAfterClass() : mixed
- testAccessDeniedException() : mixed
- testAppendDoesNotRequireIn() : mixed
- testAppendReturnsAFinder() : mixed
- testAppendWithAFinder() : mixed
- testAppendWithAnArray() : mixed
- testContains() : mixed
- testContainsOnDirectory() : mixed
- testCountDirectories() : mixed
- testCountFiles() : mixed
- testCountWithoutIn() : mixed
- testCreate() : mixed
- testDate() : mixed
- testDepth() : mixed
- testDirectories() : mixed
- testExclude() : mixed
- testFiles() : mixed
- testFilter() : mixed
- testFollowLinks() : mixed
- testGetIterator() : mixed
- testGetIteratorWithoutIn() : mixed
- testIgnoredAccessDeniedException() : mixed
- testIgnoreDotFiles() : mixed
- testIgnoreVCS() : mixed
- testIn() : mixed
- testInWithGlob() : mixed
- testInWithGlobBrace() : mixed
- testInWithNonDirectoryGlob() : mixed
- testInWithNonExistentDirectory() : mixed
- testIteratorKeys() : mixed
- Iterator keys must be the file pathname.
- testMultipleLocations() : mixed
- Searching in multiple locations involves AppendIterator which does an unnecessary rewind which leaves FilterIterator with inner FilesystemIterator in an invalid state.
- testMultipleLocationsWithSubDirectories() : mixed
- Searching in multiple locations with sub directories involves AppendIterator which does an unnecessary rewind which leaves FilterIterator with inner FilesystemIterator in an invalid state.
- testName() : mixed
- testNotContainsOnDirectory() : mixed
- testNotName() : mixed
- testPath() : mixed
- testRegexName() : mixed
- testRegexSpecialCharsLocationWithPathRestrictionContainingStartFlag() : mixed
- testRelativePath() : mixed
- testRelativePathname() : mixed
- testSize() : mixed
- testSort() : mixed
- testSortByAccessedTime() : mixed
- testSortByChangedTime() : mixed
- testSortByModifiedTime() : mixed
- testSortByName() : mixed
- testSortByType() : mixed
- assertIterator() : mixed
- assertIteratorInForeach() : mixed
- Same as IteratorTestCase::assertIterator with foreach usage.
- assertOrderedIterator() : mixed
- assertOrderedIteratorForGroups() : mixed
- Same as assertOrderedIterator, but checks the order of groups of array elements.
- assertOrderedIteratorInForeach() : mixed
- Same as IteratorTestCase::assertOrderedIterator with foreach usage.
- buildFinder() : mixed
- toAbsolute() : mixed
- toAbsoluteFixtures() : mixed
Properties
$files
protected
static mixed
$files
$tmpDir
protected
static mixed
$tmpDir
Methods
getContainsTestData()
public
getContainsTestData() : mixed
getRegexNameTestData()
public
getRegexNameTestData() : mixed
getTestPathData()
public
getTestPathData() : mixed
setUpBeforeClass()
public
static setUpBeforeClass() : mixed
tearDownAfterClass()
public
static tearDownAfterClass() : mixed
testAccessDeniedException()
public
testAccessDeniedException() : mixed
testAppendDoesNotRequireIn()
public
testAppendDoesNotRequireIn() : mixed
testAppendReturnsAFinder()
public
testAppendReturnsAFinder() : mixed
testAppendWithAFinder()
public
testAppendWithAFinder() : mixed
testAppendWithAnArray()
public
testAppendWithAnArray() : mixed
testContains()
public
testContains(mixed $matchPatterns, mixed $noMatchPatterns, mixed $expected) : mixed
Parameters
- $matchPatterns : mixed
- $noMatchPatterns : mixed
- $expected : mixed
Tags
testContainsOnDirectory()
public
testContainsOnDirectory() : mixed
testCountDirectories()
public
testCountDirectories() : mixed
testCountFiles()
public
testCountFiles() : mixed
testCountWithoutIn()
public
testCountWithoutIn() : mixed
Tags
testCreate()
public
testCreate() : mixed
testDate()
public
testDate() : mixed
testDepth()
public
testDepth() : mixed
testDirectories()
public
testDirectories() : mixed
testExclude()
public
testExclude() : mixed
testFiles()
public
testFiles() : mixed
testFilter()
public
testFilter() : mixed
testFollowLinks()
public
testFollowLinks() : mixed
testGetIterator()
public
testGetIterator() : mixed
testGetIteratorWithoutIn()
public
testGetIteratorWithoutIn() : mixed
Tags
testIgnoredAccessDeniedException()
public
testIgnoredAccessDeniedException() : mixed
testIgnoreDotFiles()
public
testIgnoreDotFiles() : mixed
testIgnoreVCS()
public
testIgnoreVCS() : mixed
testIn()
public
testIn() : mixed
testInWithGlob()
public
testInWithGlob() : mixed
testInWithGlobBrace()
public
testInWithGlobBrace() : mixed
testInWithNonDirectoryGlob()
public
testInWithNonDirectoryGlob() : mixed
Tags
testInWithNonExistentDirectory()
public
testInWithNonExistentDirectory() : mixed
Tags
testIteratorKeys()
Iterator keys must be the file pathname.
public
testIteratorKeys() : mixed
testMultipleLocations()
Searching in multiple locations involves AppendIterator which does an unnecessary rewind which leaves FilterIterator with inner FilesystemIterator in an invalid state.
public
testMultipleLocations() : mixed
Tags
testMultipleLocationsWithSubDirectories()
Searching in multiple locations with sub directories involves AppendIterator which does an unnecessary rewind which leaves FilterIterator with inner FilesystemIterator in an invalid state.
public
testMultipleLocationsWithSubDirectories() : mixed
Tags
testName()
public
testName() : mixed
testNotContainsOnDirectory()
public
testNotContainsOnDirectory() : mixed
testNotName()
public
testNotName() : mixed
testPath()
public
testPath(mixed $matchPatterns, mixed $noMatchPatterns, array<string|int, mixed> $expected) : mixed
Parameters
- $matchPatterns : mixed
- $noMatchPatterns : mixed
- $expected : array<string|int, mixed>
Tags
testRegexName()
public
testRegexName(mixed $regex) : mixed
Parameters
- $regex : mixed
Tags
testRegexSpecialCharsLocationWithPathRestrictionContainingStartFlag()
public
testRegexSpecialCharsLocationWithPathRestrictionContainingStartFlag() : mixed
testRelativePath()
public
testRelativePath() : mixed
testRelativePathname()
public
testRelativePathname() : mixed
testSize()
public
testSize() : mixed
testSort()
public
testSort() : mixed
testSortByAccessedTime()
public
testSortByAccessedTime() : mixed
testSortByChangedTime()
public
testSortByChangedTime() : mixed
testSortByModifiedTime()
public
testSortByModifiedTime() : mixed
testSortByName()
public
testSortByName() : mixed
testSortByType()
public
testSortByType() : mixed
assertIterator()
protected
assertIterator(mixed $expected, Traversable $iterator) : mixed
Parameters
- $expected : mixed
- $iterator : Traversable
assertIteratorInForeach()
Same as IteratorTestCase::assertIterator with foreach usage.
protected
assertIteratorInForeach(array<string|int, mixed> $expected, Traversable $iterator) : mixed
Parameters
- $expected : array<string|int, mixed>
- $iterator : Traversable
assertOrderedIterator()
protected
assertOrderedIterator(mixed $expected, Traversable $iterator) : mixed
Parameters
- $expected : mixed
- $iterator : Traversable
assertOrderedIteratorForGroups()
Same as assertOrderedIterator, but checks the order of groups of array elements.
protected
assertOrderedIteratorForGroups(mixed $expected, Traversable $iterator) : mixed
@param array $expected - an array of arrays. For any two subarrays $a and $b such that $a goes before $b in $expected, the method asserts that any element of $a goes before any element of $b in the sequence generated by $iterator
Parameters
- $expected : mixed
- $iterator : Traversable
assertOrderedIteratorInForeach()
Same as IteratorTestCase::assertOrderedIterator with foreach usage.
protected
assertOrderedIteratorInForeach(array<string|int, mixed> $expected, Traversable $iterator) : mixed
Parameters
- $expected : array<string|int, mixed>
- $iterator : Traversable
buildFinder()
protected
buildFinder() : mixed
toAbsolute()
protected
static toAbsolute([mixed $files = null ]) : mixed
Parameters
- $files : mixed = null
toAbsoluteFixtures()
protected
static toAbsoluteFixtures(mixed $files) : mixed
Parameters
- $files : mixed