8000 [Filesystem] Add a failing test covering a bug in `Filesystem::mirror()` by mnapoli · Pull Request #26399 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Filesystem] Add a failing test covering a bug in Filesystem::mirror() #26399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix coding style
  • Loading branch information
mnapoli committed Mar 4, 2018
commit efdc14cba2a8abfe62f95313b07fe0f71c44f141
4 changes: 2 additions & 2 deletions src/Symfony/Component/Filesystem/Tests/FilesystemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ public function testMirrorWithIterator()
$targetPath = $this->workspace.DIRECTORY_SEPARATOR.'target'.DIRECTORY_SEPARATOR;

// Mirror everything except `source2`
$iterator = new Finder;
$iterator = new Finder();
$iterator->in($sourcePath)
->exclude('source2');
$this->filesystem->mirror($sourcePath, $targetPath, $iterator);
Expand All @@ -1104,7 +1104,7 @@ public function testMirrorWithIteratorAndDeleteOption()
mkdir($targetPath.'target');

// Mirror everything except `source2`
$iterator = new Finder;
$iterator = new Finder();
$iterator->in($sourcePath)
->exclude('source2');
$this->filesystem->mirror($sourcePath, $targetPath, $iterator, array('delete' => true));
Expand Down
0