Skip to content

Commit

Permalink
Merge pull request #45 from wp-cli/44-phar-missing-composer-plugin-files
Browse files Browse the repository at this point in the history
Add regression test to detect Composer plugin errors
  • Loading branch information
danielbachhuber authored Nov 7, 2017
2 parents 334f2e6 + 1a79123 commit b069ec3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions features/package.feature
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,17 @@ Feature: Manage WP-CLI packages

When I run `wp --require=bad-command.php package list`
Then STDERR should be empty

Scenario: Run package commands without hitting Composer plugin errors in Phar files
Given an empty directory
And a new Phar with the same version

When I run `{PHAR_PATH} package list`
Then STDERR should not contain:
"""
failed to open stream
"""
And STDERR should not contain:
"""
is not a file in phar
"""

0 comments on commit b069ec3

Please sign in to comment.