@@ -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 = new \Exception ();
428
+ $ reportableException = new \Exception ();
429
429
430
430
$ mockEvent = $ this
431
431
->getMockBuilder ('Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent ' )
@@ -436,14 +436,14 @@ public function test_that_it_captures_exception()
436
436
$ mockEvent
437
437
->expects ($ this ->once ())
438
438
->method ('getException ' )
439
- ->willReturn ($ mockException )
439
+ ->willReturn ($ reportableException )
440
440
;
441
441
442
442
$ this
443
443
->mockSentryClient
444
444
->expects ($ this ->once ())
445
445
->method ('captureException ' )
446
- ->with ($ this ->identicalTo ($ mockException ))
446
+ ->with ($ this ->identicalTo ($ reportableException ))
447
447
;
448
448
449
449
$ this ->containerBuilder ->compile ();
@@ -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 = new \Exception ();
456
+ $ reportableException = new \Exception ();
457
457
458
458
$ mockCommand = $ this
459
459
->getMockBuilder ('Symfony\Component\Console\Command\Command ' )
@@ -482,7 +482,7 @@ public function test_that_it_captures_console_exception()
482
482
$ mockEvent
483
483
->expects ($ this ->once ())
484
484
->method ('getException ' )
485
- ->willReturn ($ mockException )
485
+ ->willReturn ($ reportableException )
486
486
;
487
487
488
488
$ mockEvent
@@ -496,7 +496,7 @@ public function test_that_it_captures_console_exception()
496
496
->expects ($ this ->once ())
497
497
->method ('captureException ' )
498
498
->with (
499
- $ this ->identicalTo ($ mockException ),
499
+ $ this ->identicalTo ($ reportableException ),
500
500
$ this ->identicalTo (array (
501
501
'tags ' => array (
502
502
'command ' => 'cmd name ' ,
@@ -519,7 +519,7 @@ public function test_that_it_can_replace_client()
519
519
->getMock ()
520
520
;
521
521
522
- $ mockException = new \Exception ();
522
+ $ reportableException = new \Exception ();
523
523
524
524
$ mockEvent = $ this
525
525
->getMockBuilder ('Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent ' )
@@ -530,7 +530,7 @@ public function test_that_it_can_replace_client()
530
530
$ mockEvent
531
531
->expects ($ this ->once ())
532
532
->method ('getException ' )
533
- ->willReturn ($ mockException )
533
+ ->willReturn ($ reportableException )
534
534
;
535
535
536
536
$ this
@@ -543,7 +543,7 @@ public function test_that_it_can_replace_client()
543
543
$ replacementClient
544
544
->expects ($ this ->once ())
545
545
->method ('captureException ' )
546
- ->with ($ this ->identicalTo ($ mockException ))
546
+ ->with ($ this ->identicalTo ($ reportableException ))
547
547
;
548
548
549
549
$ this ->containerBuilder ->compile ();
0 commit comments