fix 5.3 compatiblity of tests

This commit is contained in:
Robin Appelman 2015-10-16 15:55:10 +02:00
commit f8cbccabd5
3 changed files with 14 additions and 11 deletions

View file

@ -47,12 +47,12 @@ class DirectoryWrapper extends IteratorDirectory {
}
public function testManipulateContent() {
$source = \Icewind\Streams\IteratorDirectory::wrap(['asd', 'bar']);
$source = \Icewind\Streams\IteratorDirectory::wrap(array('asd', 'bar'));
$wrapped = DirectoryWrapperDummy::wrap($source);
$result = [];
$result = array();
while (($file = readdir($wrapped)) !== false) {
$result[] = $file;
}
$this->assertEquals(['asd_', 'bar_'], $result);
$this->assertEquals(array('asd_', 'bar_'), $result);
}
}