Skip to content

Commit 6370fe4

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

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

config/phpstan-baseline.neon

Lines changed: 0 additions & 1 deletion
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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ parameters:
1212
- %currentWorkingDirectory%/bin/
1313
- %currentWorkingDirectory%/src/
1414
- %currentWorkingDirectory%/tests/
15+
16+
ignoreErrors:
17+
-
18+
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) .* will always evaluate to#'
19+
path: '../tests/'

0 commit comments

Comments
 (0)