Skip to content

Commit b120c8b

Browse files
committed
Allow for diverging PHPUnit version specifics in tests
1 parent 1f289ad commit b120c8b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

features/install-wp-tests.feature

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,15 @@ Feature: Scaffold install-wp-tests.sh tests
219219
Then the return code should be 1
220220
And STDOUT should contain:
221221
"""
222-
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.
222+
Looks like you're using PHPUnit 9.5.
223+
"""
224+
And STDOUT should contain:
225+
"""
226+
WordPress requires at least PHPUnit 5.
227+
"""
228+
And STDOUT should contain:
229+
"""
230+
and is currently only compatible with PHPUnit up to 7.x.
223231
"""
224232
225233
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`

0 commit comments

Comments
 (0)