4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Finder\Tests\Iterator;
14 use Symfony\Component\Finder\Iterator\RecursiveDirectoryIterator;
16 class RecursiveDirectoryIteratorTest extends IteratorTestCase
21 public function testRewindOnFtp()
24 $i = new RecursiveDirectoryIterator('ftp://speedtest.tele2.net/', \RecursiveDirectoryIterator::SKIP_DOTS);
25 } catch (\UnexpectedValueException $e) {
26 $this->markTestSkipped('Unsupported stream "ftp".');
31 $this->assertTrue(true);
37 public function testSeekOnFtp()
40 $i = new RecursiveDirectoryIterator('ftp://speedtest.tele2.net/', \RecursiveDirectoryIterator::SKIP_DOTS);
41 } catch (\UnexpectedValueException $e) {
42 $this->markTestSkipped('Unsupported stream "ftp".');
46 'ftp://speedtest.tele2.net'.DIRECTORY_SEPARATOR.'1000GB.zip',
47 'ftp://speedtest.tele2.net'.DIRECTORY_SEPARATOR.'100GB.zip',
52 $actual[] = $i->getPathname();
55 $actual[] = $i->getPathname();
57 $this->assertEquals($contains, $actual);