public function testSeekOnFtp() { $i =
new RecursiveDirectoryIterator('ftp://speedtest:speedtest@ftp.otenet.gr/', \RecursiveDirectoryIterator::SKIP_DOTS
);
$contains =
[ 'ftp://speedtest:speedtest@ftp.otenet.gr'.\DIRECTORY_SEPARATOR.'test100Mb.db',
'ftp://speedtest:speedtest@ftp.otenet.gr'.\DIRECTORY_SEPARATOR.'test100k.db',
];
$actual =
[];
$i->
seek(0
);
$actual[] =
$i->
getPathname();
$i->
seek(1
);
$actual[] =
$i->
getPathname();
$this->
assertEquals($contains,
$actual);
}}