Open tomasnorre opened 3 months ago
Note: $resetSingletonInstances = true
is a lazy option. If you are in need to use that, your test setup adds more singleton instances to the GeneralUtility
than it is consumend. Thus literally bootstrapping more than needed, and consuming expectation not matched.
The default resetSingletonInstances = false
is the integration check telling you if your setup creates more instances then consumed (and expected).
Recently saw changes in the core adding more of these properties set to true, which we need to clean anyway (and deprecate / transform that check in TF to integrty check only).
As talked about in https://github.com/sabbelasichon/typo3-rector/issues/4275
It would be great to have a rule that used the
property set directly instead of using it in the teardown method
I'll be happy to give it a spin.