-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathunhandled-command.feature
33 lines (31 loc) · 1.8 KB
/
unhandled-command.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Feature: Unhandled exceptions in commands
Scenario: Unhandled exceptions are delivered from commands
Given I run the "app:exception:unhandled" command in the symfony fixture
When I wait to receive an error
Then the error is valid for the error reporting API version "4.0" for the "Bugsnag Symfony" notifier
And the exception "errorClass" equals "RuntimeException"
And the exception "message" equals "Crashing exception in a command!"
And the event "metaData.command.status" equals 1
And the event "metaData.command.name" equals "app:exception:unhandled"
And the event "app.type" equals "Console"
And the event "context" is null
And the event "severity" equals "error"
And the event "unhandled" is true
And the event "severityReason.type" equals "unhandledExceptionMiddleware"
And the event "severityReason.attributes.framework" equals "Symfony"
Scenario: Unhandled errors are delivered from commands
Given I run the "app:error:unhandled" command in the symfony fixture
When I wait to receive an error
Then the error is valid for the error reporting API version "4.0" for the "Bugsnag Symfony" notifier
And the exception "errorClass" equals one of the following:
| Error |
| Symfony\Component\Debug\Exception\FatalThrowableError |
And the exception "message" matches "^Call to undefined function App(Bundle)?\\Command\\foo\(\)$"
And the event "metaData.command.status" is not null
And the event "metaData.command.name" equals "app:error:unhandled"
And the event "app.type" equals "Console"
And the event "context" is null
And the event "severity" equals "error"
And the event "unhandled" is true
And the event "severityReason.type" equals "unhandledExceptionMiddleware"
And the event "severityReason.attributes.framework" equals "Symfony"