Skip to content

Commit dbef139

Browse files
committed
[TASK] Allow assertInstanceOf calls in tests
We find those checks useful.
1 parent d601354 commit dbef139

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

config/phpstan-baseline.neon

-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@ parameters:
1717
identifier: phpunit.coversMethod
1818
count: 2
1919
path: ../tests/ParserTest.php
20-

config/phpstan.neon

+5
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ parameters:
1616
- %currentWorkingDirectory%/bin/
1717
- %currentWorkingDirectory%/src/
1818
- %currentWorkingDirectory%/tests/
19+
20+
ignoreErrors:
21+
-
22+
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) .* will always evaluate to#'
23+
path: '../tests/'

0 commit comments

Comments
 (0)