public function FinderTest::testIn in Database Sanitize 7
File
- vendor/
symfony/ finder/ Tests/ FinderTest.php, line 277
Class
Namespace
Symfony\Component\Finder\TestsCode
public function testIn() {
$finder = $this
->buildFinder();
$iterator = $finder
->files()
->name('*.php')
->depth('< 1')
->in(array(
self::$tmpDir,
__DIR__,
))
->getIterator();
$expected = array(
self::$tmpDir . \DIRECTORY_SEPARATOR . 'test.php',
__DIR__ . \DIRECTORY_SEPARATOR . 'FinderTest.php',
__DIR__ . \DIRECTORY_SEPARATOR . 'GlobTest.php',
);
$this
->assertIterator($expected, $iterator);
}