Skip to content

Commit 9af0bfd

Browse files
[DI] relax test to ignore changes to error message in master
1 parent ebb2e88 commit 9af0bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Compiler/ValidateEnvPlaceholdersPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function testInvalidEnvInConfig()
105105
public function testNulledEnvInConfig()
106106
{
107107
$this->expectException('Symfony\Component\Config\Definition\Exception\InvalidTypeException');
108-
$this->expectExceptionMessage('Invalid type for path "env_extension.int_node". Expected int, but got NULL.');
108+
$this->expectExceptionMessageRegexp('/^Invalid type for path "env_extension\.int_node"\. Expected "?int"?, but got (NULL|"null")\.$/');
109109
$container = new ContainerBuilder();
110110
$container->setParameter('env(NULLED)', null);
111111
$container->registerExtension(new EnvExtension());

0 commit comments

Comments
 (0)