From c089775459b70314953ae3dd022fe2e4e3127133 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Fri, 20 Apr 2018 19:39:58 +0200 Subject: [PATCH] Skip PHPUnit tests for PHP 7.2+ --- features/install-wp-tests.feature | 2 ++ features/scaffold-theme-tests.feature | 1 + 2 files changed, 3 insertions(+) diff --git a/features/install-wp-tests.feature b/features/install-wp-tests.feature index b5f8187d9..f001a60df 100644 --- a/features/install-wp-tests.feature +++ b/features/install-wp-tests.feature @@ -14,6 +14,7 @@ Feature: Scaffold install-wp-tests.sh tests """ And the return code should be 1 + @less-than-php-7.2 Scenario: Install latest version of WordPress Given a WP install And I run `wp plugin path` @@ -75,6 +76,7 @@ Feature: Scaffold install-wp-tests.sh tests When I run `WP_TESTS_DIR=/tmp/behat-wordpress-tests-lib phpunit -c {PLUGIN_DIR}/hello-world/phpunit.xml.dist` Then the return code should be 0 + @less-than-php-7.2 Scenario: Install WordPress from trunk Given a WP install And I run `wp plugin path` diff --git a/features/scaffold-theme-tests.feature b/features/scaffold-theme-tests.feature index ac99ef890..79250adcc 100644 --- a/features/scaffold-theme-tests.feature +++ b/features/scaffold-theme-tests.feature @@ -8,6 +8,7 @@ Feature: Scaffold theme unit tests When I run `wp theme path` Then save STDOUT as {THEME_DIR} + @less-than-php-7.2 Scenario: Scaffold theme tests When I run `wp scaffold theme-tests p2child` Then STDOUT should not be empty