File tree Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 33
33
"require-dev" : {
34
34
"friendsofphp/php-cs-fixer" : " ^2.5" ,
35
35
"phpstan/phpstan" : " ^0.9.1" ,
36
+ "phpstan/phpstan-phpunit" : " ^0.9.1" ,
36
37
"phpunit/phpunit" : " ^6.0" ,
37
38
"scrutinizer/ocular" : " ^1.4" ,
38
39
"symfony/expression-language" : " ^3.0||^4.0"
Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ parameters:
2
2
ignoreErrors :
3
3
- '/Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface::/'
4
4
- '/Calling method \w+ on possibly null value of type Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface|null/'
5
+ includes :
6
+ - vendor/phpstan/phpstan-phpunit/extension.neon
Original file line number Diff line number Diff line change 7
7
use Sentry \SentryBundle \EventListener \SentryExceptionListenerInterface ;
8
8
use Sentry \SentryBundle \SentrySymfonyClient ;
9
9
use Symfony \Component \Config \Definition \Builder \ArrayNodeDefinition ;
10
- use Symfony \Component \Config \Definition \Builder \NodeDefinition ;
11
10
use Symfony \Component \Config \Definition \Builder \TreeBuilder ;
12
11
use Symfony \Component \Config \Definition \ConfigurationInterface ;
13
12
use Symfony \Component \HttpKernel \Exception \HttpExceptionInterface ;
Original file line number Diff line number Diff line change @@ -29,19 +29,14 @@ class ExceptionListenerTest extends TestCase
29
29
{
30
30
private const LISTENER_TEST_PUBLIC_ALIAS = 'sentry.exception_listener.public_alias ' ;
31
31
32
- /** @var ContainerBuilder|\PHPUnit_Framework_MockObject_MockObject */
33
32
private $ containerBuilder ;
34
33
35
- /** @var \Raven_Client|\PHPUnit_Framework_MockObject_MockObject */
36
34
private $ mockSentryClient ;
37
35
38
- /** @var TokenStorageInterface|\PHPUnit_Framework_MockObject_MockObject */
39
36
private $ mockTokenStorage ;
40
37
41
- /** @var AuthorizationCheckerInterface|\PHPUnit_Framework_MockObject_MockObject */
42
38
private $ mockAuthorizationChecker ;
43
39
44
- /** @var EventDispatcherInterface|\PHPUnit_Framework_MockObject_MockObject */
45
40
private $ mockEventDispatcher ;
46
41
47
42
public function setUp ()
@@ -514,7 +509,7 @@ public function mockCommandProvider()
514
509
515
510
public function test_that_it_can_replace_client ()
516
511
{
517
- $ replacementClient = $ this ->createMock (' Raven_Client ' );
512
+ $ replacementClient = $ this ->createMock (\ Raven_Client::class );
518
513
519
514
$ reportableException = new \Exception ();
520
515
You can’t perform that action at this time.
0 commit comments