You are here

public function FinderTest::testFollowLinks in Database Sanitize 7

File

vendor/symfony/finder/Tests/FinderTest.php, line 266

Class

FinderTest

Namespace

Symfony\Component\Finder\Tests

Code

public function testFollowLinks() {
  if ('\\' == \DIRECTORY_SEPARATOR) {
    $this
      ->markTestSkipped('symlinks are not supported on Windows');
  }
  $finder = $this
    ->buildFinder();
  $this
    ->assertSame($finder, $finder
    ->followLinks());
  $this
    ->assertIterator($this
    ->toAbsolute(array(
    'foo',
    'foo/bar.tmp',
    'test.php',
    'test.py',
    'toto',
    'foo bar',
  )), $finder
    ->in(self::$tmpDir)
    ->getIterator());
}