File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -181,12 +181,13 @@ Feature: `wp cli` tasks
181181
182182 # Create a directory with spaces and a PHP wrapper
183183 When I run `mkdir -p "php with spaces/bin"`
184- And I run `printf '#!/bin/bash\nexec php "$@"' > "php with spaces/bin/php" `
184+ And I run `cp "$(which php)" "php with spaces/bin/php"`
185185 And I run `chmod +x "php with spaces/bin/php"`
186186 Then the return code should be 0
187187
188- # Test that the update command works when PHP_BINARY has spaces
189- When I run `PHP_BINARY="$PWD/php with spaces/bin/php" "$PWD/php with spaces/bin/php" {PHAR_PATH} cli update --yes`
188+ # Test that the update command works when WP_CLI_PHP_USED has spaces
189+ # This simulates the scenario where PHP binary path contains spaces
190+ When I run `WP_CLI_PHP_USED="$PWD/php with spaces/bin/php" {PHAR_PATH} cli update --yes`
190191 Then STDOUT should contain:
191192 """
192193 sha512 hash verified:
You can’t perform that action at this time.
0 commit comments