Issue #3104372 by Gábor Hojtsy, mondrake, longwave, andypost, catch: Fix Drupal\FunctionalTests\AssertLegacyTrait inconsistent deprecation messages (cherry picked from commit 5e395126)