Skip to content

Commit 30f2758

Browse files
authored
Merge pull request #145 from wp-cli/144-fix-php-72-unit-test-incompatibility
Skip PHPUnit tests for PHP 7.2+
2 parents 1d815f3 + c089775 commit 30f2758

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

features/install-wp-tests.feature

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

17+
@less-than-php-7.2
1718
Scenario: Install latest version of WordPress
1819
Given a WP install
1920
And I run `wp plugin path`
@@ -75,6 +76,7 @@ Feature: Scaffold install-wp-tests.sh tests
7576
When I run `WP_TESTS_DIR=/tmp/behat-wordpress-tests-lib phpunit -c {PLUGIN_DIR}/hello-world/phpunit.xml.dist`
7677
Then the return code should be 0
7778

79+
@less-than-php-7.2
7880
Scenario: Install WordPress from trunk
7981
Given a WP install
8082
And I run `wp plugin path`

features/scaffold-theme-tests.feature

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

11+
@less-than-php-7.2
1112
Scenario: Scaffold theme tests
1213
When I run `wp scaffold theme-tests p2child`
1314
Then STDOUT should not be empty

0 commit comments

Comments
 (0)