Exemplo n.º 1
0
<?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');
Exemplo n.º 2
0
<?php

$I = new CliGuy($scenario);
$I->wantTo('copy dir with CopyDir task');
$I->amInPath(codecept_data_dir() . 'sandbox');
$I->taskCopyDir(['box' => 'bin'])->run();
$I->seeDirFound('bin');
$I->seeFileFound('robo.txt', 'bin');
Exemplo n.º 3
0
<?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');