Skip to content

Commit 113c330

Browse files
committed
use PHP_BINARY in TestFramework Application to trigger sub-process
1 parent fdc06a4 commit 113c330

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev/tests/integration/framework/Magento/TestFramework/Application.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ public function cleanup()
426426
* @see \Magento\Setup\Mvc\Bootstrap\InitParamListener::BOOTSTRAP_PARAM
427427
*/
428428
$this->_shell->execute(
429-
'php -f %s setup:uninstall -n --magento-init-params=%s',
429+
PHP_BINARY . ' -f %s setup:uninstall -n --magento-init-params=%s',
430430
[BP . '/bin/magento', $this->getInitParamsQuery()]
431431
);
432432
}
@@ -459,15 +459,15 @@ public function install()
459459

460460
// run install script
461461
$this->_shell->execute(
462-
'php -f %s setup:install ' . implode(' ', array_keys($installParams)),
462+
PHP_BINARY . ' -f %s setup:install ' . implode(' ', array_keys($installParams)),
463463
array_merge([BP . '/bin/magento'], array_values($installParams))
464464
);
465465

466466
// enable only specified list of caches
467467
$initParamsQuery = $this->getInitParamsQuery();
468-
$this->_shell->execute('php -f %s cache:disable --bootstrap=%s', [BP . '/bin/magento', $initParamsQuery]);
468+
$this->_shell->execute(PHP_BINARY . ' -f %s cache:disable --bootstrap=%s', [BP . '/bin/magento', $initParamsQuery]);
469469
$this->_shell->execute(
470-
'php -f %s cache:enable %s %s %s %s --bootstrap=%s',
470+
PHP_BINARY . ' -f %s cache:enable %s %s %s %s --bootstrap=%s',
471471
[
472472
BP . '/bin/magento',
473473
\Magento\Framework\App\Cache\Type\Config::TYPE_IDENTIFIER,

0 commit comments

Comments
 (0)