11Feature : Profile a specific hook
22
3+ @require-wp-4.0
34 Scenario : Profile all hooks when a specific hook isn't specified
45 Given a WP install
56
@@ -11,6 +12,7 @@ Feature: Profile a specific hook
1112 | template_redirect |
1213 And STDERR should be empty
1314
15+ @require-wp-4.4
1416 Scenario : Profile all callbacks when --all flag is used
1517 Given a WP install
1618
@@ -21,7 +23,7 @@ Feature: Profile a specific hook
2123 | smilies_init () | 2 | 0 |
2224 | feed_links () | 8 | 0 |
2325
24- @less-than-php-7
26+ @less-than-php-7 @require-wp-4.0
2527 Scenario : Profile an intermediate stage hook
2628 Given a WP install
2729
@@ -35,6 +37,7 @@ Feature: Profile a specific hook
3537 runcommand\Profile\Profiler->wp_tick_profile_begin()
3638 """
3739
40+ @require-wp-4.0
3841 Scenario : Profile a hook before the template is loaded
3942 Given a WP install
4043
@@ -43,6 +46,7 @@ Feature: Profile a specific hook
4346 | callback |
4447 And STDERR should be empty
4548
49+ @require-wp-4.0
4650 Scenario : Profile a hook without any callbacks
4751 Given a WP install
4852
@@ -52,6 +56,7 @@ Feature: Profile a specific hook
5256 | total (0 ) |
5357 And STDERR should be empty
5458
59+ @require-wp-4.0
5560 Scenario : Profile a hook that has actions with output
5661 Given a WP install
5762
@@ -63,6 +68,7 @@ Feature: Profile a specific hook
6368 <meta name="generator"
6469 """
6570
71+ @require-wp-4.0
6672 Scenario : Profile the shutdown hook
6773 Given a WP install
6874 And a wp-content/mu-plugins/shutdown.php file:
@@ -82,6 +88,7 @@ Feature: Profile a specific hook
8288 | total (2 ) | 0 | 1 |
8389 And STDERR should be empty
8490
91+ @require-wp-4.0
8592 Scenario : Indicate where a callback is defined with profiling a hook
8693 Given a WP install
8794 And a wp-content/mu-plugins/custom-action.php file:
@@ -101,6 +108,7 @@ Feature: Profile a specific hook
101108 | total (1 ) | | 0 | 1 |
102109 And STDERR should be empty
103110
111+ @require-wp-4.4
104112 Scenario : Hooks should only be called once
105113 Given a WP install
106114 And a wp-content/mu-plugins/action-test.php file:
@@ -122,7 +130,7 @@ Feature: Profile a specific hook
122130 Warning: Called 1
123131 """
124132
125- @less-than-php-7
133+ @less-than-php-7 @require-wp-4.0
126134 Scenario : Profile the mu_plugins:before hook
127135 Given a WP install
128136 And a wp-content/mu-plugins/awesome-file.php file:
@@ -140,7 +148,7 @@ Feature: Profile a specific hook
140148 wp-content/mu-plugins/awesome-file.php
141149 """
142150
143- @less-than-php-7
151+ @less-than-php-7 @require-wp-4.0
144152 Scenario : Profile the :after hooks
145153 Given a WP install
146154
0 commit comments