public function FinderTest::testSort in Database Sanitize 7
File
- vendor/
symfony/ finder/ Tests/ FinderTest.php, line 252
Class
Namespace
Symfony\Component\Finder\TestsCode
public function testSort() {
$finder = $this
->buildFinder();
$this
->assertSame($finder, $finder
->sort(function (\SplFileInfo $a, \SplFileInfo $b) {
return strcmp($a
->getRealPath(), $b
->getRealPath());
}));
$this
->assertIterator($this
->toAbsolute(array(
'foo',
'foo bar',
'foo/bar.tmp',
'test.php',
'test.py',
'toto',
)), $finder
->in(self::$tmpDir)
->getIterator());
}