[BUGFIX] Stop mocking classes that do not exist
This is only possible with PHPUnit, not with Prophecy, and it is bad practice as there is no way to do type analysis on classes that do not exist. Also avoid using mocks where an `stdClass` instance does just fine. Used command: > ./Build/Scripts/runTests.sh -s phpstanGenerateBaseline Resolves: #97634 Releases: main, 11.5 Change-Id: I2a92678a60df7bd762688e3b7571b18f861340d9 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74621 Tested-by:core-ci <typo3@b13.com> Tested-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Stefan Bürk <stefan@buerk.tech>
Showing
- Build/phpstan/phpstan-baseline.neon 0 additions, 20 deletionsBuild/phpstan/phpstan-baseline.neon
- typo3/sysext/core/Tests/Unit/Package/AbstractServiceProviderTest.php 2 additions, 3 deletions...t/core/Tests/Unit/Package/AbstractServiceProviderTest.php
- typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php 3 additions, 5 deletionstypo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php
Please register or sign in to comment