File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 21
21
"consistence/coding-standard" : " ~0.13.0" ,
22
22
"jakub-onderka/php-parallel-lint" : " ^0.9.2" ,
23
23
"phing/phing" : " ^2.13.0" ,
24
+ "phpstan/phpstan-php-parser" : " ^0.9" ,
25
+ "phpstan/phpstan-phpunit" : " ^0.9" ,
24
26
"phpunit/phpunit" : " ^6.2" ,
25
27
"satooshi/php-coveralls" : " ^1.0" ,
26
28
"slevomat/coding-standard" : " ^2.0"
Original file line number Diff line number Diff line change
1
+ includes :
2
+ - vendor/phpstan/phpstan-php-parser/extension.neon
3
+ - vendor/phpstan/phpstan-phpunit/extension.neon
4
+ - vendor/phpstan/phpstan-phpunit/rules.neon
5
+
1
6
parameters :
2
7
excludes_analyse :
3
8
- %rootDir%/../../../tests/notAutoloaded/*
4
-
5
- ignoreErrors :
6
- - ' #PHPUnit_Framework_MockObject_MockObject given #'
7
- - ' # but returns PHPUnit_Framework_MockObject_MockObject. #'
8
- - ' #Access to an undefined property PHPUnit_Framework_MockObject_MockObject::\$[a-zA-Z0-9_ ]+ #'
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ protected function setUp()
30
30
public function testSmartObjectChild ()
31
31
{
32
32
$ scope = $ this ->createMock (Scope::class);
33
- $ node = $ this ->createMock (Node::class);
34
- $ node ->namespacedName = 'PHPStan\Tests\SmartObjectChild ' ;
33
+ $ node = $ this ->createMock (Node \ Stmt \Class_ ::class);
34
+ $ node ->namespacedName = new Node \ Name ( 'PHPStan\Tests\SmartObjectChild ' ) ;
35
35
36
36
$ result = $ this ->rule ->processNode ($ node , $ scope );
37
37
@@ -44,8 +44,8 @@ public function testNetteObjectChild()
44
44
$ this ->markTestSkipped ('PHP 7.2 is incompatible with Nette\Object. ' );
45
45
}
46
46
$ scope = $ this ->createMock (Scope::class);
47
- $ node = $ this ->createMock (Node::class);
48
- $ node ->namespacedName = 'PHPStan\Tests\NetteObjectChild ' ;
47
+ $ node = $ this ->createMock (Node \ Stmt \Class_ ::class);
48
+ $ node ->namespacedName = new Node \ Name ( 'PHPStan\Tests\NetteObjectChild ' ) ;
49
49
50
50
$ result = $ this ->rule ->processNode ($ node , $ scope );
51
51
You can’t perform that action at this time.
0 commit comments