Skip to content

Commit 2ff74f8

Browse files
committed
relax expected exception message for forward-compatibility with 5.4
1 parent 0acdf7f commit 2ff74f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/DependencyInjection/PhpFrameworkExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function testRateLimiterLockFactory()
126126
});
127127

128128
$this->expectException(OutOfBoundsException::class);
129-
$this->expectExceptionMessage('The argument "2" doesn\'t exist.');
129+
$this->expectExceptionMessageMatches('/^The argument "2" doesn\'t exist.*\.$/');
130130

131131
$container->getDefinition('limiter.without_lock')->getArgument(2);
132132
}

0 commit comments

Comments
 (0)