Issue #3172438 by mondrake, kishor_kolekar, longwave, NitinLama, mikelutz, jungle: Since symfony/phpunit-bridge 5.1: Using "@expectedDeprecation" annotations in tests is deprecated, use the "ExpectDeprecationTrait::expectDeprecation()" method instead