You are here

public function FinderTest::testRelativePath in Database Sanitize 7

File

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

Class

FinderTest

Namespace

Symfony\Component\Finder\Tests

Code

public function testRelativePath() {
  $finder = $this
    ->buildFinder()
    ->in(self::$tmpDir);
  $paths = array();
  foreach ($finder as $file) {
    $paths[] = $file
      ->getRelativePath();
  }
  $ref = array(
    '',
    '',
    '',
    '',
    'foo',
    '',
  );
  sort($ref);
  sort($paths);
  $this
    ->assertEquals($ref, $paths);
}