You are here

public function FinderTest::testRemoveTrailingSlash in Database Sanitize 7

File

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

Class

FinderTest

Namespace

Symfony\Component\Finder\Tests

Code

public function testRemoveTrailingSlash() {
  $finder = $this
    ->buildFinder();
  $expected = $this
    ->toAbsolute(array(
    'foo/bar.tmp',
    'test.php',
    'test.py',
    'foo bar',
  ));
  $in = self::$tmpDir . '//';
  $this
    ->assertIterator($expected, $finder
    ->in($in)
    ->files()
    ->getIterator());
}