From 113c3308b7f71f2206165a5eb2da35a218e08c67 Mon Sep 17 00:00:00 2001 From: Matthias Walter Date: Wed, 17 Feb 2016 11:47:34 +0100 Subject: [PATCH] use PHP_BINARY in TestFramework Application to trigger sub-process --- .../framework/Magento/TestFramework/Application.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dev/tests/integration/framework/Magento/TestFramework/Application.php b/dev/tests/integration/framework/Magento/TestFramework/Application.php index b87cea882de18..9d2b7ef6b266a 100644 --- a/dev/tests/integration/framework/Magento/TestFramework/Application.php +++ b/dev/tests/integration/framework/Magento/TestFramework/Application.php @@ -426,7 +426,7 @@ public function cleanup() * @see \Magento\Setup\Mvc\Bootstrap\InitParamListener::BOOTSTRAP_PARAM */ $this->_shell->execute( - 'php -f %s setup:uninstall -n --magento-init-params=%s', + PHP_BINARY . ' -f %s setup:uninstall -n --magento-init-params=%s', [BP . '/bin/magento', $this->getInitParamsQuery()] ); } @@ -459,15 +459,15 @@ public function install() // run install script $this->_shell->execute( - 'php -f %s setup:install ' . implode(' ', array_keys($installParams)), + PHP_BINARY . ' -f %s setup:install ' . implode(' ', array_keys($installParams)), array_merge([BP . '/bin/magento'], array_values($installParams)) ); // enable only specified list of caches $initParamsQuery = $this->getInitParamsQuery(); - $this->_shell->execute('php -f %s cache:disable --bootstrap=%s', [BP . '/bin/magento', $initParamsQuery]); + $this->_shell->execute(PHP_BINARY . ' -f %s cache:disable --bootstrap=%s', [BP . '/bin/magento', $initParamsQuery]); $this->_shell->execute( - 'php -f %s cache:enable %s %s %s %s --bootstrap=%s', + PHP_BINARY . ' -f %s cache:enable %s %s %s %s --bootstrap=%s', [ BP . '/bin/magento', \Magento\Framework\App\Cache\Type\Config::TYPE_IDENTIFIER,