Skip to content

Commit b069ec3

Browse files
Merge pull request #45 from wp-cli/44-phar-missing-composer-plugin-files
Add regression test to detect Composer plugin errors
2 parents 334f2e6 + 1a79123 commit b069ec3

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

features/package.feature

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,17 @@ Feature: Manage WP-CLI packages
5656

5757
When I run `wp --require=bad-command.php package list`
5858
Then STDERR should be empty
59+
60+
Scenario: Run package commands without hitting Composer plugin errors in Phar files
61+
Given an empty directory
62+
And a new Phar with the same version
63+
64+
When I run `{PHAR_PATH} package list`
65+
Then STDERR should not contain:
66+
"""
67+
failed to open stream
68+
"""
69+
And STDERR should not contain:
70+
"""
71+
is not a file in phar
72+
"""

0 commit comments

Comments
 (0)