You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Symfony, if the kernel is booted in a "before class" hook, deprecations are not handled by PHPUnit's error handler. Actually, PHPUnit's error handler is not enabled at all, because another error handler is already registered.
I'm trying to open an issue here, to see if it would possible to mitigate the problem in PHPUnit?
Current behavior
Deprecation, for instance are not shown in PHPUnit's output.
How to reproduce
finalclassSomeTestextendsKernelTestCase
{
publicstaticfunctionsetUpBeforeClass(): void
{
self::bootKernel(); // <== if this line is removed, the deprecation is displayed
}
publicfunctiontestWithDeprecation(): void
{
@trigger_error('some deprecation', \E_USER_DEPRECATED);
self::assertTrue(true);
}
}
thanks!
The text was updated successfully, but these errors were encountered:
Summary
Hi,
When using Symfony, if the kernel is booted in a "before class" hook, deprecations are not handled by PHPUnit's error handler. Actually, PHPUnit's error handler is not enabled at all, because another error handler is already registered.
I'm trying to open an issue here, to see if it would possible to mitigate the problem in PHPUnit?
Current behavior
Deprecation, for instance are not shown in PHPUnit's output.
How to reproduce
thanks!
The text was updated successfully, but these errors were encountered: