cache-command/features/profile-hook-feature.feature
Daniel Bachhuber 440a13b7ff Catch hook Exceptions incrementally
This permits our output buffering to work as expected.
2016-09-08 06:02:48 -07:00

21 lines
615 B
Gherkin

Feature: Profile a specific hook
Scenario: Profile a hook without any callbacks
Given a WP install
When I run `wp profile --hook=setup_theme --fields=callback`
Then STDOUT should be a table containing rows:
| callback |
| total |
And STDERR should be empty
Scenario: Profile a hook that has actions with output
Given a WP install
When I run `wp profile --hook=wp_head --fields=callback`
Then STDOUT should be a table containing rows:
| callback |
And STDOUT should not contain:
"""
<meta name="generator"
"""