comparison vendor/symfony/finder/Tests/Iterator/RecursiveDirectoryIteratorTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
40 $i = new RecursiveDirectoryIterator('ftp://speedtest.tele2.net/', \RecursiveDirectoryIterator::SKIP_DOTS); 40 $i = new RecursiveDirectoryIterator('ftp://speedtest.tele2.net/', \RecursiveDirectoryIterator::SKIP_DOTS);
41 } catch (\UnexpectedValueException $e) { 41 } catch (\UnexpectedValueException $e) {
42 $this->markTestSkipped('Unsupported stream "ftp".'); 42 $this->markTestSkipped('Unsupported stream "ftp".');
43 } 43 }
44 44
45 $contains = array( 45 $contains = [
46 'ftp://speedtest.tele2.net'.DIRECTORY_SEPARATOR.'1000GB.zip', 46 'ftp://speedtest.tele2.net'.\DIRECTORY_SEPARATOR.'1000GB.zip',
47 'ftp://speedtest.tele2.net'.DIRECTORY_SEPARATOR.'100GB.zip', 47 'ftp://speedtest.tele2.net'.\DIRECTORY_SEPARATOR.'100GB.zip',
48 ); 48 ];
49 $actual = array(); 49 $actual = [];
50 50
51 $i->seek(0); 51 $i->seek(0);
52 $actual[] = $i->getPathname(); 52 $actual[] = $i->getPathname();
53 53
54 $i->seek(1); 54 $i->seek(1);