diff --git a/tests/RoboFile.php b/tests/RoboFile.php index 65d85f8..63e723c 100644 --- a/tests/RoboFile.php +++ b/tests/RoboFile.php @@ -112,19 +112,19 @@ class RoboFile extends \Robo\Tasks $this->printTaskError(" Could not connect ot database..."); } - $install_code = file_get_contents($this->root_dir . 'www/install/cli_install.php'); - $storage = <<root_dir . 'www/install/cli_install.php', - str_replace("define('DIR_MODIFICATION', DIR_SYSTEM . 'modification/');", $storage, $install_code) - ); + file_put_contents( + $this->root_dir . 'www/install/cli_install.php', + str_replace("define('DIR_MODIFICATION', DIR_SYSTEM . 'modification/');", $storage, $install_code) + ); + } $install = $this->taskExec('php')->arg($this->root_dir . 'www/install/cli_install.php')->arg('install'); foreach ($this->opencart_config as $option => $value) {