-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathhandled-controller.feature
31 lines (29 loc) · 1.61 KB
/
handled-controller.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
Feature: Handled exceptions in controllers
Scenario: Handled exceptions are delivered from controllers
Given I start the symfony fixture
When I navigate to the route "/handled/controller/exception"
Then I wait to receive an error
And the error is valid for the error reporting API version "4.0" for the "Bugsnag Symfony" notifier
And the exception "errorClass" equals "LogicException"
And the exception "message" equals "This is a handled exception"
And the event "metaData.request.httpMethod" equals "GET"
And the event "metaData.request.url" ends with "/handled/controller/exception"
And the event "app.type" equals "HTTP"
And the event "context" equals "GET /handled/controller/exception"
And the event "severity" equals "warning"
And the event "unhandled" is false
And the event "severityReason.type" equals "handledException"
Scenario: Handled errors are delivered from controllers
Given I start the symfony fixture
When I navigate to the route "/handled/controller/error"
Then I wait to receive an error
And the error is valid for the error reporting API version "4.0" for the "Bugsnag Symfony" notifier
And the exception "errorClass" equals "Handled error"
And the exception "message" equals "This is a handled error"
And the event "metaData.request.httpMethod" equals "GET"
And the event "metaData.request.url" ends with "/handled/controller/error"
And the event "app.type" equals "HTTP"
And the event "context" equals "GET /handled/controller/error"
And the event "severity" equals "warning"
And the event "unhandled" is false
And the event "severityReason.type" equals "handledError"