File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1348,6 +1348,22 @@ public function testMirrorContentsWithSameNameAsSourceOrTargetWithDeleteOption()
1348
1348
$ this ->assertFileNotExists ($ targetPath .'target ' );
1349
1349
}
1350
1350
1351
+ public function testMirrorFromSubdirectoryInToParentDirectory ()
1352
+ {
1353
+ $ targetPath = $ this ->workspace .\DIRECTORY_SEPARATOR .'foo ' .\DIRECTORY_SEPARATOR ;
1354
+ $ sourcePath = $ targetPath .'bar ' .\DIRECTORY_SEPARATOR ;
1355
+ $ file1 = $ sourcePath .'file1 ' ;
1356
+ $ file2 = $ sourcePath .'file2 ' ;
1357
+
1358
+ $ this ->filesystem ->mkdir ($ sourcePath );
1359
+ file_put_contents ($ file1 , 'FILE1 ' );
1360
+ file_put_contents ($ file2 , 'FILE2 ' );
1361
+
1362
+ $ this ->filesystem ->mirror ($ sourcePath , $ targetPath );
1363
+
1364
+ $ this ->assertFileEquals ($ file1 , $ targetPath .'file1 ' );
1365
+ }
1366
+
1351
1367
/**
1352
1368
* @dataProvider providePathsForIsAbsolutePath
1353
1369
*/
You can’t perform that action at this time.
0 commit comments