From d4d002e627568b37d21eb4afe41bcce5f412075b Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Mon, 19 Apr 2021 17:28:42 +0100 Subject: [PATCH] Add test requirements --- features/profile-hook.feature | 14 +++++++++++--- features/profile-stage.feature | 5 +++++ features/profile.feature | 2 ++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/features/profile-hook.feature b/features/profile-hook.feature index 6cc2447..e6602b9 100644 --- a/features/profile-hook.feature +++ b/features/profile-hook.feature @@ -1,5 +1,6 @@ Feature: Profile a specific hook + @require-wp-4.0 Scenario: Profile all hooks when a specific hook isn't specified Given a WP install @@ -11,6 +12,7 @@ Feature: Profile a specific hook | template_redirect | And STDERR should be empty + @require-wp-4.4 Scenario: Profile all callbacks when --all flag is used Given a WP install @@ -21,7 +23,7 @@ Feature: Profile a specific hook | smilies_init() | 2 | 0 | | feed_links() | 8 | 0 | - @less-than-php-7 + @less-than-php-7 @require-wp-4.0 Scenario: Profile an intermediate stage hook Given a WP install @@ -35,6 +37,7 @@ Feature: Profile a specific hook runcommand\Profile\Profiler->wp_tick_profile_begin() """ + @require-wp-4.0 Scenario: Profile a hook before the template is loaded Given a WP install @@ -43,6 +46,7 @@ Feature: Profile a specific hook | callback | And STDERR should be empty + @require-wp-4.0 Scenario: Profile a hook without any callbacks Given a WP install @@ -52,6 +56,7 @@ Feature: Profile a specific hook | total (0) | And STDERR should be empty + @require-wp-4.0 Scenario: Profile a hook that has actions with output Given a WP install @@ -63,6 +68,7 @@ Feature: Profile a specific hook