@@ -179,14 +179,17 @@ public function testDeleteFilesFailure()
179179
180180 public function testGetFilenames ()
181181 {
182- $ this ->assertTrue (function_exists ('delete_files ' ));
182+ $ this ->assertTrue (function_exists ('get_filenames ' ));
183183
184- // Not sure the directory names should actually show up
185- // here but this matches v3.x results.
186184 $ expected = [
187- 'foo ' ,
188- 'boo ' ,
185+ '.hidden ' ,
189186 'AnEmptyFolder ' ,
187+ 'boo ' ,
188+ 'boo/far ' ,
189+ 'boo/faz ' ,
190+ 'foo ' ,
191+ 'foo/bar ' ,
192+ 'foo/baz ' ,
190193 'simpleFile ' ,
191194 ];
192195
@@ -197,19 +200,22 @@ public function testGetFilenames()
197200
198201 public function testGetFilenamesWithSource ()
199202 {
200- $ this ->assertTrue (function_exists ('delete_files ' ));
203+ $ this ->assertTrue (function_exists ('get_filenames ' ));
204+
205+ $ vfs = vfsStream::setup ('root ' , null , $ this ->structure );
201206
202- // Not sure the directory names should actually show up
203- // here but this matches v3.x results.
204207 $ expected = [
205- DIRECTORY_SEPARATOR . 'foo ' ,
206- DIRECTORY_SEPARATOR . 'boo ' ,
207- DIRECTORY_SEPARATOR . 'AnEmptyFolder ' ,
208- DIRECTORY_SEPARATOR . 'simpleFile ' ,
208+ $ vfs ->url () . DIRECTORY_SEPARATOR . '.hidden ' ,
209+ $ vfs ->url () . DIRECTORY_SEPARATOR . 'AnEmptyFolder ' ,
210+ $ vfs ->url () . DIRECTORY_SEPARATOR . 'boo ' ,
211+ $ vfs ->url () . DIRECTORY_SEPARATOR . 'boo/far ' ,
212+ $ vfs ->url () . DIRECTORY_SEPARATOR . 'boo/faz ' ,
213+ $ vfs ->url () . DIRECTORY_SEPARATOR . 'foo ' ,
214+ $ vfs ->url () . DIRECTORY_SEPARATOR . 'foo/bar ' ,
215+ $ vfs ->url () . DIRECTORY_SEPARATOR . 'foo/baz ' ,
216+ $ vfs ->url () . DIRECTORY_SEPARATOR . 'simpleFile ' ,
209217 ];
210218
211- $ vfs = vfsStream::setup ('root ' , null , $ this ->structure );
212-
213219 $ this ->assertEquals ($ expected , get_filenames ($ vfs ->url (), true ));
214220 }
215221
0 commit comments