Révision ed9a13f1
Ajouté par Assos Assos il y a presque 4 ans
drupal7/sites/all/modules/feeds/tests/drush/feedsDrushTest.php | ||
---|---|---|
17 | 17 |
* @group commands |
18 | 18 |
*/ |
19 | 19 |
class feedsDrushTest extends CommandUnishTestCase { |
20 |
|
|
20 | 21 |
/** |
21 | 22 |
* {@inheritdoc} |
22 | 23 |
*/ |
... | ... | |
55 | 56 |
new \RecursiveDirectoryIterator($source, \RecursiveDirectoryIterator::SKIP_DOTS), |
56 | 57 |
\RecursiveIteratorIterator::SELF_FIRST) as $item |
57 | 58 |
) { |
58 |
if ($item->isDir()) { |
|
59 |
mkdir($dest . "/" . $iterator->getSubPathName()); |
|
60 |
} |
|
61 |
else { |
|
62 |
copy($item, $dest . "/" . $iterator->getSubPathName()); |
|
63 |
} |
|
59 |
if ($item->isDir()) { |
|
60 |
mkdir($dest . "/" . $iterator->getSubPathName()); |
|
61 |
} |
|
62 |
else { |
|
63 |
copy($item, $dest . "/" . $iterator->getSubPathName()); |
|
64 | 64 |
} |
65 | 65 |
} |
66 |
} |
|
66 | 67 |
|
67 | 68 |
/** |
68 | 69 |
* Wrapper around drush to always add the site options. |
Formats disponibles : Unified diff
Weekly update of contrib modules