Skip to content

Commit 7970ec9

Browse files
committed
Fix HHVM tests
1 parent abdf1b1 commit 7970ec9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ public function test_that_it_does_not_report_http_exception_if_included_in_captu
425425

426426
public function test_that_it_captures_exception()
427427
{
428-
$mockException = $this->getMock('Exception');
428+
$mockException = new \Exception();
429429

430430
$mockEvent = $this
431431
->getMockBuilder('Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent')
@@ -453,7 +453,7 @@ public function test_that_it_captures_exception()
453453

454454
public function test_that_it_captures_console_exception()
455455
{
456-
$mockException = $this->getMock('Exception');
456+
$mockException = new \Exception();
457457

458458
$mockCommand = $this
459459
->getMockBuilder('Symfony\Component\Console\Command\Command')
@@ -519,7 +519,7 @@ public function test_that_it_can_replace_client()
519519
->getMock()
520520
;
521521

522-
$mockException = $this->getMock('Exception');
522+
$mockException = new \Exception();
523523

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

0 commit comments

Comments
 (0)