Skip to content

Commit 8a43128

Browse files
author
Andrii Afanasiev
committed
extend tests
1 parent 6f2706b commit 8a43128

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace SymfonyRollbarBundle\Tests\Fixtures;
4+
5+
class MyAwesomeSymfonyException implements \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface
6+
{
7+
/**
8+
* Returns the status code.
9+
*
10+
* @return int An HTTP response status code
11+
*/
12+
public function getStatusCode()
13+
{
14+
}
15+
16+
/**
17+
* Returns response headers.
18+
*
19+
* @return array Response headers
20+
*/
21+
public function getHeaders()
22+
{
23+
}
24+
}

Tests/Fixtures/app/config/config_test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ symfony_rollbar:
88
- \Symfony\Component\Debug\Exception\FatalErrorException
99
- \SymfonyRollbarBundle\Tests\Fixtures\MyAwesomeException
1010
- \ParseError
11+
- \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface
1112
rollbar:
1213
access_token: 'SOME_ROLLBAR_ACCESS_TOKEN_123456'
1314
environment: '%kernel.environment%'

Tests/SymfonyRollbarBundle/Provider/RollbarHandlerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ public function generatorShouldSkip()
173173
[$e, false],
174174
[new \Exception(), false],
175175
[new \SymfonyRollbarBundle\Tests\Fixtures\MyAwesomeException(), true],
176+
[new \SymfonyRollbarBundle\Tests\Fixtures\MyAwesomeSymfonyException(), true],
176177
[new \Symfony\Component\Debug\Exception\UndefinedFunctionException("error", $e), true],
177178
[new \TypeError("TypeError"), false],
178179
[new \ParseError("ParseError"), true],

0 commit comments

Comments
 (0)