File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test/Sentry/SentryBundle/Test/EventListener Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ public function test_that_it_does_not_report_http_exception_if_included_in_captu
425
425
426
426
public function test_that_it_captures_exception ()
427
427
{
428
- $ mockException = $ this -> getMock ( ' Exception ' );
428
+ $ mockException = new \ Exception ( );
429
429
430
430
$ mockEvent = $ this
431
431
->getMockBuilder ('Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent ' )
@@ -453,7 +453,7 @@ public function test_that_it_captures_exception()
453
453
454
454
public function test_that_it_captures_console_exception ()
455
455
{
456
- $ mockException = $ this -> getMock ( ' Exception ' );
456
+ $ mockException = new \ Exception ( );
457
457
458
458
$ mockCommand = $ this
459
459
->getMockBuilder ('Symfony\Component\Console\Command\Command ' )
@@ -519,7 +519,7 @@ public function test_that_it_can_replace_client()
519
519
->getMock ()
520
520
;
521
521
522
- $ mockException = $ this -> getMock ( ' Exception ' );
522
+ $ mockException = new \ Exception ( );
523
523
524
524
$ mockEvent = $ this
525
525
->getMockBuilder ('Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent ' )
You can’t perform that action at this time.
0 commit comments