Skip to content

Commit

Permalink
[TASK] Allow assertInstanceOf calls in tests
Browse files Browse the repository at this point in the history
We find those checks useful.
  • Loading branch information
oliverklee committed Dec 17, 2024
1 parent d601354 commit dbef139
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion config/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ parameters:
identifier: phpunit.coversMethod
count: 2
path: ../tests/ParserTest.php

5 changes: 5 additions & 0 deletions config/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ parameters:
- %currentWorkingDirectory%/bin/
- %currentWorkingDirectory%/src/
- %currentWorkingDirectory%/tests/

ignoreErrors:
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) .* will always evaluate to#'
path: '../tests/'

0 comments on commit dbef139

Please sign in to comment.