Issue Task Closed

#96706Remove broken test from ServiceProviderCompilationPassTest

Benjamin Franzke 01/31/22, 09:57 updated 10/04/22, 14:07

Description

PHPStan static analysis revealed that the method
exceptionForInvalidFactories() did not containa a proper test
setup, which went undetected as the expected TypeError
was thrown for the invalid test setup.

This could have been fixed but the test actually only
tried to assert whether a callable type declaration is set,
in order to test whether a PHP error is thrown when an
invalid factory is provided. This is useless as an
invalid factory will result in an error in any case,
once tried to be called.

Reviews 2