-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathunhandled-view.feature
37 lines (35 loc) · 2.17 KB
/
unhandled-view.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
34
35
36
37
Feature: Unhandled exceptions in views
Scenario: Unhandled exceptions are delivered from views
Given I start the symfony fixture
When I navigate to the route "/unhandled/view/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 "Twig\Error\RuntimeError"
And the exception "message" equals 'An exception has been thrown during the rendering of a template (\\"Crash!\\").'
And the event "metaData.request.httpMethod" equals "GET"
And the event "metaData.request.url" ends with "/unhandled/view/exception"
And the event "app.type" equals "HTTP"
And the event "context" equals "GET /unhandled/view/exception"
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 views
Given I start the symfony fixture
When I navigate to the route "/unhandled/view/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 one of the following:
| Twig\Error\RuntimeError |
| Symfony\Component\Debug\Exception\UndefinedFunctionException |
And the exception "message" equals one of the following:
| Attempted to call function "abcxyz" from namespace "AppBundle\Twig". |
| An exception has been thrown during the rendering of a template ("Call to undefined function App\Twig\abcxyz()"). |
And the event "metaData.request.httpMethod" equals "GET"
And the event "metaData.request.url" ends with "/unhandled/view/error"
And the event "app.type" equals "HTTP"
And the event "context" equals "GET /unhandled/view/error"
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"