From df97b92a06c5dfe9b9d4ef23203585f2e44cb5fa Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sat, 23 Mar 2024 10:43:21 +0100 Subject: [PATCH] fix test --- .../Tests/ParameterBag/EnvPlaceholderParameterBagTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/EnvPlaceholderParameterBagTest.php b/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/EnvPlaceholderParameterBagTest.php index 268c28283006a..89030ec918ab0 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/EnvPlaceholderParameterBagTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/EnvPlaceholderParameterBagTest.php @@ -31,7 +31,7 @@ public function testGetThrowsInvalidArgumentExceptionIfEnvNameContainsNonWordCha { $bag = new EnvPlaceholderParameterBag(); $this->expectException(InvalidArgumentException::class); - $this->expectExceptionMessage('Invalid env(%foo%) name: only "word" characters are allowed.'); + $this->expectExceptionMessage('The given env var name "env(%foo%)" contains invalid characters (allowed characters: letters, digits, hyphens, backslashes and colons).'); $bag->get('env(%foo%)'); }