Skip to content

Commit fe8d4a2

Browse files
swissspidyclaude
andcommitted
Use the framework's built-in web server step again
wp-cli/wp-cli-tests v5.3.2 makes `a PHP built-in web server` work in a plain directory (wp-cli/wp-cli-tests#363), so the manual `php -S` launch is no longer needed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019g8sd6U4w59qiQW7LTt1jG
1 parent 60588ac commit fe8d4a2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎features/package-install.feature‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ Feature: Install WP-CLI packages
10281028
}
10291029
"""
10301030
And I run `php -r '$zip = new ZipArchive(); $zip->open( "remote-zip-test-command.zip", ZipArchive::CREATE | ZipArchive::OVERWRITE ); $zip->addFromString( "remote-zip-test-command/composer.json", file_get_contents( "remote-zip-test-command/composer.json" ) ); $zip->close();'`
1031-
And I launch in the background `php -S localhost:8080 -t .`
1031+
And a PHP built-in web server
10321032
10331033
When I run `wp package install http://localhost:8080/remote-zip-test-command.zip`
10341034
Then STDOUT should contain:
@@ -1056,7 +1056,7 @@ Feature: Install WP-CLI packages
10561056
}
10571057
"""
10581058
And I run `php -r '$zip = new ZipArchive(); $zip->open( "remote-zip-flat-command.zip", ZipArchive::CREATE | ZipArchive::OVERWRITE ); $zip->addFromString( "composer.json", file_get_contents( "composer-flat.json" ) ); $zip->close();'`
1059-
And I launch in the background `php -S localhost:8080 -t .`
1059+
And a PHP built-in web server
10601060
10611061
When I run `wp package install http://localhost:8080/remote-zip-flat-command.zip`
10621062
Then STDOUT should contain:
@@ -1079,7 +1079,7 @@ Feature: Install WP-CLI packages
10791079
"""
10801080
this is not a zip archive
10811081
"""
1082-
And I launch in the background `php -S localhost:8080 -t .`
1082+
And a PHP built-in web server
10831083
10841084
When I try `wp package install http://localhost:8080/invalid.zip`
10851085
Then the return code should be 1
@@ -1090,7 +1090,7 @@ Feature: Install WP-CLI packages
10901090
10911091
Scenario: Install from a remote zip URL that returns 404
10921092
Given an empty directory
1093-
And I launch in the background `php -S localhost:8080 -t .`
1093+
And a PHP built-in web server
10941094
10951095
When I try `wp package install http://localhost:8080/missing.zip`
10961096
Then the return code should be 1

0 commit comments

Comments
 (0)