forked from consolidation/robo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request consolidation#145 from burzum/bugfix/CopyDir-recur…
…sive-destination-check Bugfix/copy dir recursive destination check
- Loading branch information
Showing
7 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
some existing file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Just a file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
some_destination existing file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
$I = new CliGuy($scenario); | ||
$I->wantTo('overwrite a file with CopyDir task'); | ||
$I->amInPath(codecept_data_dir() . 'sandbox'); | ||
$I->seeDirFound('some'); | ||
$I->seeFileFound('existing_file', 'some'); | ||
$I->taskCopyDir(['some' => 'some_destination']) | ||
->run(); | ||
$I->seeFileFound('existing_file', 'some_destination/deeply'); | ||
$I->openFile('some_destination/deeply/existing_file'); | ||
$I->seeInThisFile('some existing file'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
$I = new CliGuy($scenario); | ||
$I->wantTo('copy dir recursively with CopyDir task'); | ||
$I->amInPath(codecept_data_dir() . 'sandbox'); | ||
$I->seeDirFound('some/deeply/nested'); | ||
$I->seeFileFound('structu.re', 'some/deeply/nested'); | ||
$I->taskCopyDir(['some/deeply' => 'some_destination/deeply']) | ||
->run(); | ||
$I->seeDirFound('some_destination/deeply/nested'); | ||
$I->seeFileFound('structu.re', 'some_destination/deeply/nested'); |