public function FinderTest::testIgnoreVCS in Database Sanitize 7
File
- vendor/
symfony/ finder/ Tests/ FinderTest.php, line 187
Class
Namespace
Symfony\Component\Finder\TestsCode
public function testIgnoreVCS() {
$finder = $this
->buildFinder();
$this
->assertSame($finder, $finder
->ignoreVCS(false)
->ignoreDotFiles(false));
$this
->assertIterator($this
->toAbsolute(array(
'.git',
'foo',
'foo/bar.tmp',
'test.php',
'test.py',
'toto',
'toto/.git',
'.bar',
'.foo',
'.foo/.bar',
'.foo/bar',
'foo bar',
)), $finder
->in(self::$tmpDir)
->getIterator());
$finder = $this
->buildFinder();
$finder
->ignoreVCS(false)
->ignoreVCS(false)
->ignoreDotFiles(false);
$this
->assertIterator($this
->toAbsolute(array(
'.git',
'foo',
'foo/bar.tmp',
'test.php',
'test.py',
'toto',
'toto/.git',
'.bar',
'.foo',
'.foo/.bar',
'.foo/bar',
'foo bar',
)), $finder
->in(self::$tmpDir)
->getIterator());
$finder = $this
->buildFinder();
$this
->assertSame($finder, $finder
->ignoreVCS(true)
->ignoreDotFiles(false));
$this
->assertIterator($this
->toAbsolute(array(
'foo',
'foo/bar.tmp',
'test.php',
'test.py',
'toto',
'.bar',
'.foo',
'.foo/.bar',
'.foo/bar',
'foo bar',
)), $finder
->in(self::$tmpDir)
->getIterator());
}