1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 10:04:35 +02:00

Made acceptance tests work again

Broken due to Codeception moving modules out of codeception/codeception
This commit is contained in:
Nick Liu
2019-12-28 10:35:36 +01:00
parent e797efce74
commit c31b645013
2 changed files with 7 additions and 3 deletions

View File

@@ -350,9 +350,12 @@ class cPanelDeployer extends Deployer
$i = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path));
self::println("Adding app to temporary archive…");
$path = realpath($path);
foreach ($i as $relpath => $_value)
/**
* @var $file_info SplFileInfo
*/
foreach ($i as $file_info)
{
$realpath = realpath($relpath);
$realpath = $file_info->getRealPath();
if (substr($realpath, 0, strlen($path)) === $path)
$relpath = substr($realpath, strlen($path));
if (substr($relpath, -3) === "/.." ||