Skip to content

Commit 594f0b4

Browse files
authored
Run test only on PHP 7.0+ (#323)
Tests involving the WP release can now only run on PHP 7.0+ due to the new minimum requirement.
1 parent 63e4c18 commit 594f0b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

features/install-wp-tests.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Feature: Scaffold install-wp-tests.sh tests
1414
"""
1515
And the return code should be 1
1616

17-
@less-than-php-8.0
17+
@less-than-php-8.0 @require-php-7.0
1818
Scenario: Install latest version of WordPress
1919
Given a WP install
2020
And a affirmative-response file:

features/scaffold-theme-tests.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Feature: Scaffold theme unit tests
88
When I run `wp theme path`
99
Then save STDOUT as {THEME_DIR}
1010

11-
@require-php-5.6 @less-than-php-7.2
11+
@require-php-7.0 @less-than-php-7.2
1212
Scenario: Scaffold theme tests
1313
When I run `wp scaffold theme-tests p2child`
1414
Then STDOUT should not be empty

0 commit comments

Comments
 (0)