mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-25 00:56:12 +01:00
[TASK] allow assertInstanceOf
checks for PHPStan (#1256)
These assertions are useful in tests also in cases where we have the corresponding type annotations in the production code. Part of #1252
This commit is contained in:
parent
8ac18a4e5f
commit
30457228d5
2 changed files with 4 additions and 20 deletions
|
@ -1,21 +1,2 @@
|
||||||
parameters:
|
parameters:
|
||||||
ignoreErrors:
|
ignoreErrors: []
|
||||||
-
|
|
||||||
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'TYPO3\\\\\\\\CMS\\\\\\\\Extbase\\\\\\\\Mvc\\\\\\\\Controller\\\\\\\\ActionController' and PHPUnit\\\\Framework\\\\MockObject\\\\MockObject&TTN\\\\Tea\\\\Controller\\\\FrontEndEditorController&TYPO3\\\\TestingFramework\\\\Core\\\\AccessibleObjectInterface will always evaluate to true\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: Tests/Unit/Controller/FrontEndEditorControllerTest.php
|
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'TYPO3\\\\\\\\CMS\\\\\\\\Extbase\\\\\\\\Mvc\\\\\\\\Controller\\\\\\\\ActionController' and PHPUnit\\\\Framework\\\\MockObject\\\\MockObject&TTN\\\\Tea\\\\Controller\\\\TeaController&TYPO3\\\\TestingFramework\\\\Core\\\\AccessibleObjectInterface will always evaluate to true\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: Tests/Unit/Controller/TeaControllerTest.php
|
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'TYPO3\\\\\\\\CMS\\\\\\\\Extbase\\\\\\\\DomainObject\\\\\\\\AbstractEntity' and TTN\\\\Tea\\\\Domain\\\\Model\\\\Tea will always evaluate to true\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: Tests/Unit/Domain/Model/TeaTest.php
|
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'TYPO3\\\\\\\\CMS\\\\\\\\Extbase\\\\\\\\Persistence\\\\\\\\Repository' and TTN\\\\Tea\\\\Domain\\\\Repository\\\\TeaRepository will always evaluate to true\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: Tests/Unit/Domain/Repository/TeaRepositoryTest.php
|
|
||||||
|
|
|
@ -17,6 +17,9 @@ parameters:
|
||||||
- Configuration
|
- Configuration
|
||||||
- Tests
|
- Tests
|
||||||
|
|
||||||
|
# Allow instanceof checks, particularly in tests
|
||||||
|
checkAlwaysTrueCheckTypeFunctionCall: false
|
||||||
|
|
||||||
type_coverage:
|
type_coverage:
|
||||||
return_type: 100
|
return_type: 100
|
||||||
param_type: 100
|
param_type: 100
|
||||||
|
|
Loading…
Reference in a new issue