Skip to content

Commit

Permalink
Allow for diverging PHPUnit version specifics in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera committed Jan 25, 2022
1 parent 1f289ad commit b120c8b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion features/install-wp-tests.feature
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,15 @@ Feature: Scaffold install-wp-tests.sh tests
Then the return code should be 1
And STDOUT should contain:
"""
Looks like you're using PHPUnit 9.5.8. WordPress requires at least PHPUnit 5.4 and is currently only compatible with PHPUnit up to 7.x.
Looks like you're using PHPUnit 9.5.
"""
And STDOUT should contain:
"""
WordPress requires at least PHPUnit 5.
"""
And STDOUT should contain:
"""
and is currently only compatible with PHPUnit up to 7.x.
"""
When I try `WP_TESTS_DIR={RUN_DIR}/wordpress-tests-lib WP_CORE_DIR={RUN_DIR}/wordpress /usr/bin/env bash {PLUGIN_DIR}/hello-world/bin/install-wp-tests.sh wp_cli_test_scaffold {DB_USER} {DB_PASSWORD} {DB_HOST} latest < affirmative-response`
Expand Down

0 comments on commit b120c8b

Please sign in to comment.