Fix quotes in exception messages

This commit is contained in:
Fabien Potencier 2020-03-16 13:36:05 +01:00
parent e903750b9c
commit 42df4f434b

View File

@ -112,7 +112,7 @@ class EnvPlaceholderParameterBagTest extends TestCase
public function testResolveEnvRequiresStrings() public function testResolveEnvRequiresStrings()
{ {
$this->expectException('Symfony\Component\DependencyInjection\Exception\RuntimeException'); $this->expectException('Symfony\Component\DependencyInjection\Exception\RuntimeException');
$this->expectExceptionMessage('The default value of env parameter "INT_VAR" must be a string or null, integer given.'); $this->expectExceptionMessage('The default value of env parameter "INT_VAR" must be a string or null, "integer" given.');
$bag = new EnvPlaceholderParameterBag(); $bag = new EnvPlaceholderParameterBag();
$bag->get('env(INT_VAR)'); $bag->get('env(INT_VAR)');
@ -154,7 +154,7 @@ class EnvPlaceholderParameterBagTest extends TestCase
public function testResolveThrowsOnBadDefaultValue() public function testResolveThrowsOnBadDefaultValue()
{ {
$this->expectException('Symfony\Component\DependencyInjection\Exception\RuntimeException'); $this->expectException('Symfony\Component\DependencyInjection\Exception\RuntimeException');
$this->expectExceptionMessage('The default value of env parameter "ARRAY_VAR" must be a string or null, array given.'); $this->expectExceptionMessage('The default value of env parameter "ARRAY_VAR" must be a string or null, "array" given.');
$bag = new EnvPlaceholderParameterBag(); $bag = new EnvPlaceholderParameterBag();
$bag->get('env(ARRAY_VAR)'); $bag->get('env(ARRAY_VAR)');
$bag->set('env(ARRAY_VAR)', []); $bag->set('env(ARRAY_VAR)', []);