TYPO3  7.6
Public Member Functions | Private Member Functions | List of all members
FinderTest Class Reference
Inheritance diagram for FinderTest:
RealIteratorTestCase IteratorTestCase

Public Member Functions

 testCreate ()
 
 testDirectories ($adapter)
 
 testFiles ($adapter)
 
 testDepth ($adapter)
 
 testName ($adapter)
 
 testNotName ($adapter)
 
 testRegexName ($adapter, $regex)
 
 testSize ($adapter)
 
 testDate ($adapter)
 
 testExclude ($adapter)
 
 testIgnoreVCS ($adapter)
 
 testIgnoreDotFiles ($adapter)
 
 testSortByName ($adapter)
 
 testSortByType ($adapter)
 
 testSortByAccessedTime ($adapter)
 
 testSortByChangedTime ($adapter)
 
 testSortByModifiedTime ($adapter)
 
 testSort ($adapter)
 
 testFilter ($adapter)
 
 testFollowLinks ($adapter)
 
 testIn ($adapter)
 
 testInWithGlob ($adapter)
 
 testInWithNonDirectoryGlob ($adapter)
 
 testInWithGlobBrace ($adapter)
 
 testGetIterator ($adapter)
 
 testRelativePath ($adapter)
 
 testRelativePathname ($adapter)
 
 testAppendWithAFinder ($adapter)
 
 testAppendWithAnArray ($adapter)
 
 testAppendReturnsAFinder ($adapter)
 
 testAppendDoesNotRequireIn ($adapter)
 
 testCountDirectories ()
 
 testCountFiles ()
 
 testCountWithoutIn ()
 
 testContains ($adapter, $matchPatterns, $noMatchPatterns, $expected)
 
 testContainsOnDirectory (Adapter\AdapterInterface $adapter)
 
 testNotContainsOnDirectory (Adapter\AdapterInterface $adapter)
 
 testMultipleLocations (Adapter\AdapterInterface $adapter)
 
 testIteratorKeys (Adapter\AdapterInterface $adapter)
 
 testRegexSpecialCharsLocationWithPathRestrictionContainingStartFlag (Adapter\AdapterInterface $adapter)
 
 testAdaptersOrdering ()
 
 testAdaptersChaining ()
 
 getAdaptersTestData ()
 
 getContainsTestData ()
 
 getRegexNameTestData ()
 
 testPath (Adapter\AdapterInterface $adapter, $matchPatterns, $noMatchPatterns, array $expected)
 
 testAdapterSelection ()
 
 getTestPathData ()
 
 testAccessDeniedException (Adapter\AdapterInterface $adapter)
 
 testIgnoredAccessDeniedException (Adapter\AdapterInterface $adapter)
 
 testMultipleLocationsWithSubDirectories ()
 

Private Member Functions

 buildTestData (array $tests)
 
 buildFinder (Adapter\AdapterInterface $adapter)
 
 getValidAdapters ()
 

Additional Inherited Members

- Static Public Member Functions inherited from RealIteratorTestCase
static setUpBeforeClass ()
 
static tearDownAfterClass ()
 
- Protected Member Functions inherited from IteratorTestCase
 assertIterator ($expected,\Traversable $iterator)
 
 assertOrderedIterator ($expected,\Traversable $iterator)
 
 assertOrderedIteratorForGroups ($expected,\Traversable $iterator)
 
 assertIteratorInForeach ($expected,\Traversable $iterator)
 
 assertOrderedIteratorInForeach ($expected,\Traversable $iterator)
 
- Static Protected Member Functions inherited from RealIteratorTestCase
static toAbsolute ($files=null)
 
static toAbsoluteFixtures ($files)
 
- Static Protected Attributes inherited from RealIteratorTestCase
static $tmpDir
 
static $files
 

Detailed Description

Definition at line 17 of file FinderTest.php.

Member Function Documentation

buildFinder ( Adapter\AdapterInterface  $adapter)
private
buildTestData ( array  $tests)
private
getAdaptersTestData ( )

Definition at line 629 of file FinderTest.php.

References FinderTest\getValidAdapters().

getContainsTestData ( )

Definition at line 637 of file FinderTest.php.

References FinderTest\buildTestData().

getRegexNameTestData ( )

Definition at line 655 of file FinderTest.php.

References FinderTest\buildTestData().

getTestPathData ( )

Definition at line 693 of file FinderTest.php.

References FinderTest\buildTestData().

getValidAdapters ( )
private

Definition at line 827 of file FinderTest.php.

Referenced by FinderTest\buildTestData(), and FinderTest\getAdaptersTestData().

testAccessDeniedException ( Adapter\AdapterInterface  $adapter)

getAdaptersTestData

Definition at line 743 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testAdaptersChaining ( )
testAdapterSelection ( )

Definition at line 678 of file FinderTest.php.

References Finder\create().

testAdaptersOrdering ( )

Definition at line 594 of file FinderTest.php.

References Finder\create().

testAppendDoesNotRequireIn (   $adapter)

getAdaptersTestData

Definition at line 462 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and Finder\create().

testAppendReturnsAFinder (   $adapter)

getAdaptersTestData

Definition at line 454 of file FinderTest.php.

References FinderTest\buildFinder().

testAppendWithAFinder (   $adapter)

getAdaptersTestData

Definition at line 425 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testAppendWithAnArray (   $adapter)

getAdaptersTestData

Definition at line 441 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testContains (   $adapter,
  $matchPatterns,
  $noMatchPatterns,
  $expected 
)
testContainsOnDirectory ( Adapter\AdapterInterface  $adapter)

getAdaptersTestData

Definition at line 522 of file FinderTest.php.

References IteratorTestCase\assertIterator(), and FinderTest\buildFinder().

testCountDirectories ( )

Definition at line 472 of file FinderTest.php.

References Finder\create().

testCountFiles ( )

Definition at line 484 of file FinderTest.php.

References RealIteratorTestCase\$files, and Finder\create().

testCountWithoutIn ( )

Definition at line 499 of file FinderTest.php.

References Finder\create().

testCreate ( )

Definition at line 19 of file FinderTest.php.

References Finder\create().

testDate (   $adapter)

getAdaptersTestData

Definition at line 156 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testDepth (   $adapter)

getAdaptersTestData

Definition at line 59 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testDirectories (   $adapter)

getAdaptersTestData

Definition at line 27 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testExclude (   $adapter)

getAdaptersTestData

Definition at line 166 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testFiles (   $adapter)

getAdaptersTestData

Definition at line 43 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testFilter (   $adapter)
testFollowLinks (   $adapter)

getAdaptersTestData

Definition at line 282 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testGetIterator (   $adapter)

getAdaptersTestData

Definition at line 347 of file FinderTest.php.

References FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testIgnoredAccessDeniedException ( Adapter\AdapterInterface  $adapter)

getAdaptersTestData

Definition at line 782 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testIgnoreDotFiles (   $adapter)

getAdaptersTestData

Definition at line 194 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testIgnoreVCS (   $adapter)

getAdaptersTestData

Definition at line 176 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testIn (   $adapter)

getAdaptersTestData

Definition at line 296 of file FinderTest.php.

References IteratorTestCase\assertIterator(), and FinderTest\buildFinder().

testInWithGlob (   $adapter)
testInWithGlobBrace (   $adapter)
testInWithNonDirectoryGlob (   $adapter)

getAdaptersTestData

Definition at line 327 of file FinderTest.php.

References FinderTest\buildFinder().

testIteratorKeys ( Adapter\AdapterInterface  $adapter)

Iterator keys must be the file pathname.

getAdaptersTestData

Definition at line 572 of file FinderTest.php.

References FinderTest\buildFinder().

testMultipleLocations ( Adapter\AdapterInterface  $adapter)

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

See Also
https://bugs.php.net/bug.php?id=49104

getAdaptersTestData

Definition at line 553 of file FinderTest.php.

References FinderTest\buildFinder().

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.

See Also
https://bugs.php.net/bug.php?id=49104

Definition at line 848 of file FinderTest.php.

References IteratorTestCase\assertIterator(), and IteratorTestCase\assertIteratorInForeach().

testName (   $adapter)

getAdaptersTestData

Definition at line 81 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testNotContainsOnDirectory ( Adapter\AdapterInterface  $adapter)

getAdaptersTestData

Definition at line 535 of file FinderTest.php.

References IteratorTestCase\assertIterator(), and FinderTest\buildFinder().

testNotName (   $adapter)

getAdaptersTestData

Definition at line 108 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testPath ( Adapter\AdapterInterface  $adapter,
  $matchPatterns,
  $noMatchPatterns,
array  $expected 
)
testRegexName (   $adapter,
  $regex 
)

getRegexNameTestData

Definition at line 136 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testRegexSpecialCharsLocationWithPathRestrictionContainingStartFlag ( Adapter\AdapterInterface  $adapter)
testRelativePath (   $adapter)

getAdaptersTestData

Definition at line 383 of file FinderTest.php.

References FinderTest\buildFinder().

testRelativePathname (   $adapter)

getAdaptersTestData

Definition at line 404 of file FinderTest.php.

References FinderTest\buildFinder().

testSize (   $adapter)

getAdaptersTestData

Definition at line 146 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testSort (   $adapter)
testSortByAccessedTime (   $adapter)

getAdaptersTestData

Definition at line 232 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testSortByChangedTime (   $adapter)

getAdaptersTestData

Definition at line 242 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testSortByModifiedTime (   $adapter)

getAdaptersTestData

Definition at line 252 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testSortByName (   $adapter)

getAdaptersTestData

Definition at line 212 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().

testSortByType (   $adapter)

getAdaptersTestData

Definition at line 222 of file FinderTest.php.

References IteratorTestCase\assertIterator(), FinderTest\buildFinder(), and RealIteratorTestCase\toAbsolute().