\Symfony\Component\Finder\TestsFinderTest

Summary

Methods
Properties
Constants
setUpBeforeClass()
tearDownAfterClass()
testCreate()
testDirectories()
testFiles()
testRemoveTrailingSlash()
testSymlinksNotResolved()
testBackPathNotNormalized()
testDepth()
testName()
testNotName()
testRegexName()
testSize()
testDate()
testExclude()
testIgnoreVCS()
testIgnoreDotFiles()
testSortByName()
testSortByType()
testSortByAccessedTime()
testSortByChangedTime()
testSortByModifiedTime()
testSort()
testFilter()
testFollowLinks()
testIn()
testInWithNonExistentDirectory()
testInWithGlob()
testInWithNonDirectoryGlob()
testInWithGlobBrace()
testGetIteratorWithoutIn()
testGetIterator()
testRelativePath()
testRelativePathname()
testAppendWithAFinder()
testAppendWithAnArray()
testAppendReturnsAFinder()
testAppendDoesNotRequireIn()
testCountDirectories()
testCountFiles()
testCountWithoutIn()
testHasResults()
testNoResults()
testContains()
testContainsOnDirectory()
testNotContainsOnDirectory()
testMultipleLocations()
testMultipleLocationsWithSubDirectories()
testIteratorKeys()
testRegexSpecialCharsLocationWithPathRestrictionContainingStartFlag()
getContainsTestData()
getRegexNameTestData()
testPath()
getTestPathData()
testAccessDeniedException()
testIgnoredAccessDeniedException()
No public properties found
No constants found
toAbsolute()
toAbsoluteFixtures()
assertIterator()
assertOrderedIterator()
assertOrderedIteratorForGroups()
assertIteratorInForeach()
assertOrderedIteratorInForeach()
buildFinder()
$tmpDir
$files
N/A
No private methods found
No private properties found
N/A

Properties

$tmpDir

$tmpDir : 

Type

$files

$files : 

Type

Methods

setUpBeforeClass()

setUpBeforeClass() 

tearDownAfterClass()

tearDownAfterClass() 

testCreate()

testCreate() 

testDirectories()

testDirectories() 

testFiles()

testFiles() 

testRemoveTrailingSlash()

testRemoveTrailingSlash() 

testSymlinksNotResolved()

testSymlinksNotResolved() 

testBackPathNotNormalized()

testBackPathNotNormalized() 

testDepth()

testDepth() 

testName()

testName() 

testNotName()

testNotName() 

testRegexName()

testRegexName(  $regex) 

Parameters

$regex

testSize()

testSize() 

testDate()

testDate() 

testExclude()

testExclude() 

testIgnoreVCS()

testIgnoreVCS() 

testIgnoreDotFiles()

testIgnoreDotFiles() 

testSortByName()

testSortByName() 

testSortByType()

testSortByType() 

testSortByAccessedTime()

testSortByAccessedTime() 

testSortByChangedTime()

testSortByChangedTime() 

testSortByModifiedTime()

testSortByModifiedTime() 

testSort()

testSort() 

testFilter()

testFilter() 

testFollowLinks()

testFollowLinks() 

testIn()

testIn() 

testInWithNonExistentDirectory()

testInWithNonExistentDirectory() 

testInWithGlob()

testInWithGlob() 

testInWithNonDirectoryGlob()

testInWithNonDirectoryGlob() 

testInWithGlobBrace()

testInWithGlobBrace() 

testGetIteratorWithoutIn()

testGetIteratorWithoutIn() 

testGetIterator()

testGetIterator() 

testRelativePath()

testRelativePath() 

testRelativePathname()

testRelativePathname() 

testAppendWithAFinder()

testAppendWithAFinder() 

testAppendWithAnArray()

testAppendWithAnArray() 

testAppendReturnsAFinder()

testAppendReturnsAFinder() 

testAppendDoesNotRequireIn()

testAppendDoesNotRequireIn() 

testCountDirectories()

testCountDirectories() 

testCountFiles()

testCountFiles() 

testCountWithoutIn()

testCountWithoutIn() 

testHasResults()

testHasResults() 

testNoResults()

testNoResults() 

testContains()

testContains(  $matchPatterns,   $noMatchPatterns,   $expected) 

Parameters

$matchPatterns
$noMatchPatterns
$expected

testContainsOnDirectory()

testContainsOnDirectory() 

testNotContainsOnDirectory()

testNotContainsOnDirectory() 

testMultipleLocations()

testMultipleLocations() 

Searching in multiple locations involves AppendIterator which does an unnecessary rewind which leaves FilterIterator with inner FilesystemIterator in an invalid state.

testMultipleLocationsWithSubDirectories()

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.

testIteratorKeys()

testIteratorKeys() 

Iterator keys must be the file pathname.

testRegexSpecialCharsLocationWithPathRestrictionContainingStartFlag()

testRegexSpecialCharsLocationWithPathRestrictionContainingStartFlag() 

getContainsTestData()

getContainsTestData() 

getRegexNameTestData()

getRegexNameTestData() 

testPath()

testPath(  $matchPatterns,   $noMatchPatterns, array  $expected) 

Parameters

$matchPatterns
$noMatchPatterns
array $expected

getTestPathData()

getTestPathData() 

testAccessDeniedException()

testAccessDeniedException() 

testIgnoredAccessDeniedException()

testIgnoredAccessDeniedException() 

toAbsolute()

toAbsolute(  $files = null) 

Parameters

$files

toAbsoluteFixtures()

toAbsoluteFixtures(  $files) 

Parameters

$files

assertIterator()

assertIterator(  $expected, \Traversable  $iterator) 

Parameters

$expected
\Traversable $iterator

assertOrderedIterator()

assertOrderedIterator(  $expected, \Traversable  $iterator) 

Parameters

$expected
\Traversable $iterator

assertOrderedIteratorForGroups()

assertOrderedIteratorForGroups(  $expected, \Traversable  $iterator) 

Same as assertOrderedIterator, but checks the order of groups of array elements.

@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
\Traversable $iterator

assertIteratorInForeach()

assertIteratorInForeach(array  $expected, \Traversable  $iterator) 

Same as IteratorTestCase::assertIterator with foreach usage.

Parameters

array $expected
\Traversable $iterator

assertOrderedIteratorInForeach()

assertOrderedIteratorInForeach(array  $expected, \Traversable  $iterator) 

Same as IteratorTestCase::assertOrderedIterator with foreach usage.

Parameters

array $expected
\Traversable $iterator

buildFinder()

buildFinder()