Skip to content

Commit f680dac

Browse files
committed
test: add PHP path back to command, as well as debug message
1 parent 3c51967 commit f680dac

20 files changed

Lines changed: 20 additions & 20 deletions

bin/composer_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ if [ -n "${working_directory}" ]; then
2828
composer_options+=("--working-dir" "${working_directory}")
2929
fi
3030

31-
full_command="${composer_path} ${composer_command} ${composer_options[*]}"
31+
full_command="${php_path} ${composer_path} ${composer_command} ${composer_options[*]}"
3232
echo "::debug::Using the following Composer command: '${full_command}'"
3333
$full_command

tests/expect/composer_install_01.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set timeout 3
44
spawn ../../bin/composer_install.sh "" "" "" "" "" "composer.lock"
55
match_max 100000
66

7-
expect "::debug::Using the following Composer command: '*/composer install --no-interaction --no-progress --ansi'"
7+
expect "::debug::Using the following Composer command: '*/php */composer install --no-interaction --no-progress --ansi'"
88
expect "Installing dependencies"
99
expect "Generating autoload files"
1010
expect eof

tests/expect/composer_install_02.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set timeout 3
44
spawn ../../bin/composer_install.sh "lowest" "" "" "" "" "composer.lock"
55
match_max 100000
66

7-
expect "::debug::Using the following Composer command: '*/composer update --no-interaction --no-progress --ansi --prefer-lowest --prefer-stable'"
7+
expect "::debug::Using the following Composer command: '*/php */composer update --no-interaction --no-progress --ansi --prefer-lowest --prefer-stable'"
88
expect "Updating dependencies"
99
expect "Generating autoload files"
1010
expect eof

tests/expect/composer_install_03.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set timeout 3
44
spawn ../../bin/composer_install.sh "highest" "" "" "" "" "composer.lock"
55
match_max 100000
66

7-
expect "::debug::Using the following Composer command: '*/composer update --no-interaction --no-progress --ansi'"
7+
expect "::debug::Using the following Composer command: '*/php */composer update --no-interaction --no-progress --ansi'"
88
expect "Updating dependencies"
99
expect "Generating autoload files"
1010
expect eof

tests/expect/composer_install_04.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set timeout 3
44
spawn ../../bin/composer_install.sh "locked" "" "" "" "" "composer.lock"
55
match_max 100000
66

7-
expect "::debug::Using the following Composer command: '*/composer install --no-interaction --no-progress --ansi'"
7+
expect "::debug::Using the following Composer command: '*/php */composer install --no-interaction --no-progress --ansi'"
88
expect "Installing dependencies"
99
expect "Generating autoload files"
1010
expect eof

tests/expect/composer_install_05.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set timeout 3
44
spawn ../../bin/composer_install.sh "" "--ignore-platform-reqs --optimize-autoloader" "" "" "" "composer.lock"
55
match_max 100000
66

7-
expect "::debug::Using the following Composer command: '*/composer install --no-interaction --no-progress --ansi --ignore-platform-reqs --optimize-autoloader'"
7+
expect "::debug::Using the following Composer command: '*/php */composer install --no-interaction --no-progress --ansi --ignore-platform-reqs --optimize-autoloader'"
88
expect "Installing dependencies"
99
expect "Generating optimized autoload files"
1010
expect eof

tests/expect/composer_install_06.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set timeout 3
44
spawn ../../bin/composer_install.sh "lowest" "--ignore-platform-reqs --optimize-autoloader" "" "" "" "composer.lock"
55
match_max 100000
66

7-
expect "::debug::Using the following Composer command: '*/composer update --no-interaction --no-progress --ansi --prefer-lowest --prefer-stable --ignore-platform-reqs --optimize-autoloader'"
7+
expect "::debug::Using the following Composer command: '*/php */composer update --no-interaction --no-progress --ansi --prefer-lowest --prefer-stable --ignore-platform-reqs --optimize-autoloader'"
88
expect "Updating dependencies"
99
expect "Generating optimized autoload files"
1010
expect eof

tests/expect/composer_install_07.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set timeout 3
44
spawn ../../bin/composer_install.sh "highest" "--ignore-platform-reqs --optimize-autoloader" "" "" "" "composer.lock"
55
match_max 100000
66

7-
expect "::debug::Using the following Composer command: '*/composer update --no-interaction --no-progress --ansi --ignore-platform-reqs --optimize-autoloader'"
7+
expect "::debug::Using the following Composer command: '*/php */composer update --no-interaction --no-progress --ansi --ignore-platform-reqs --optimize-autoloader'"
88
expect "Updating dependencies"
99
expect "Generating optimized autoload files"
1010
expect eof

tests/expect/composer_install_08.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set timeout 3
44
spawn ../../bin/composer_install.sh "locked" "--ignore-platform-reqs --optimize-autoloader" "" "" "" "composer.lock"
55
match_max 100000
66

7-
expect "::debug::Using the following Composer command: '*/composer install --no-interaction --no-progress --ansi --ignore-platform-reqs --optimize-autoloader'"
7+
expect "::debug::Using the following Composer command: '*/php */composer install --no-interaction --no-progress --ansi --ignore-platform-reqs --optimize-autoloader'"
88
expect "Installing dependencies"
99
expect "Generating optimized autoload files"
1010
expect eof

tests/expect/composer_install_09.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set timeout 3
44
spawn ../../bin/composer_install.sh "" "" "../fixtures/with-lock-file" "" "" "../fixtures/with-lock-file/composer.lock"
55
match_max 100000
66

7-
expect "::debug::Using the following Composer command: '*/composer install --no-interaction --no-progress --ansi --working-dir ../fixtures/with-lock-file'"
7+
expect "::debug::Using the following Composer command: '*/php */composer install --no-interaction --no-progress --ansi --working-dir ../fixtures/with-lock-file'"
88
expect "Installing dependencies"
99
expect "Generating autoload files"
1010
expect eof

0 commit comments

Comments
 (0)