Skip to content

Commit

Permalink
minor #54380 [DependencyInjection]  fix test (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 7.1 branch.

Discussion
----------

[DependencyInjection]  fix test

| Q             | A
| ------------- | ---
| Branch?       | 7.1
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        |
| License       | MIT

Commits
-------

df97b92 fix test
  • Loading branch information
nicolas-grekas committed Mar 23, 2024
2 parents cd2fc45 + df97b92 commit b5ee977
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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%)');
}

Expand Down

0 comments on commit b5ee977

Please sign in to comment.