Skip to content

Commit 0b96aa2

Browse files
committed
Use real exception instance
1 parent d76e811 commit 0b96aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Sentry/SentryBundle/Test/EventListener/ExceptionListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ public function test_that_username_is_set_from_user_interface_if_token_present_a
397397

398398
public function test_that_it_does_not_report_http_exception_if_included_in_capture_skip()
399399
{
400-
$mockException = $this->getMock('Symfony\Component\HttpKernel\Exception\HttpExceptionInterface');
400+
$mockException = new \Symfony\Component\HttpKernel\Exception\HttpException(401);
401401

402402
$mockEvent = $this
403403
->getMockBuilder('Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent')

0 commit comments

Comments
 (0)