diff --git a/core/tests/Drupal/Tests/Core/Test/LegacyTest.php b/core/tests/Drupal/Tests/Core/Test/LegacyTest.php index d4b60d7..cca015c 100644 --- a/core/tests/Drupal/Tests/Core/Test/LegacyTest.php +++ b/core/tests/Drupal/Tests/Core/Test/LegacyTest.php @@ -19,4 +19,13 @@ public function testSymfonyPhpUnitBridge() { }); } + /** + * Tests that the Symfony PHPUnit Bridge is working. + */ + public function testSymfonyPhpUnitBridgeHideError() { + ErrorAssert::assertDeprecationsAreTriggered('Testing Symfony PHPUnit Bridge', function () { + @trigger_error('Testing Symfony PHPUnit Bridge', E_USER_DEPRECATED); + }); + } + }