public function FinderTest::testAppendWithAFinder in Database Sanitize 7
File
- vendor/
symfony/ finder/ Tests/ FinderTest.php, line 395
Class
Namespace
Symfony\Component\Finder\TestsCode
public function testAppendWithAFinder() {
$finder = $this
->buildFinder();
$finder
->files()
->in(self::$tmpDir . \DIRECTORY_SEPARATOR . 'foo');
$finder1 = $this
->buildFinder();
$finder1
->directories()
->in(self::$tmpDir);
$finder = $finder
->append($finder1);
$this
->assertIterator($this
->toAbsolute(array(
'foo',
'foo/bar.tmp',
'toto',
)), $finder
->getIterator());
}