@@ -344,7 +344,7 @@ public function testDuplicateRootKeysErrorMessage(): void
344344
345345 $ this ->expectException (ErrorException::class);
346346 $ this ->expectErrorMessage (
347- 'Duplicate key "age" in configs: ' . "\n" .
347+ 'Duplicate key "age" in the following configs while building "params" group : ' . "\n" .
348348 ' - config/params/a.php ' . "\n" .
349349 ' - config/params/b.php '
350350 );
@@ -362,7 +362,7 @@ public function testDuplicateRootKeysErrorMessageWithReverseMerge(): void
362362
363363 $ this ->expectException (ErrorException::class);
364364 $ this ->expectErrorMessage (
365- 'Duplicate key "age" in configs: ' . "\n" .
365+ 'Duplicate key "age" in the following configs while building "params" group : ' . "\n" .
366366 ' - config/params/a.php ' . "\n" .
367367 ' - config/params/b.php '
368368 );
@@ -378,7 +378,7 @@ public function testDuplicateEnvironmentKeysErrorMessage(): void
378378
379379 $ this ->expectException (ErrorException::class);
380380 $ this ->expectErrorMessage (
381- 'Duplicate key "age" in configs: ' . "\n" .
381+ 'Duplicate key "age" in the following configs while building "params" group : ' . "\n" .
382382 ' - config/environment/params/a.php ' . "\n" .
383383 ' - config/environment/params/b.php '
384384 );
@@ -396,7 +396,7 @@ public function testDuplicateEnvironmentKeysErrorMessageWithReverseMerge(): void
396396
397397 $ this ->expectException (ErrorException::class);
398398 $ this ->expectErrorMessage (
399- 'Duplicate key "age" in configs: ' . "\n" .
399+ 'Duplicate key "age" in the following configs while building "params" group : ' . "\n" .
400400 ' - config/environment/params/a.php ' . "\n" .
401401 ' - config/environment/params/b.php '
402402 );
@@ -409,7 +409,7 @@ public function testDuplicateVendorKeysErrorMessage(): void
409409
410410 $ this ->expectException (ErrorException::class);
411411 $ this ->expectErrorMessage (
412- 'Duplicate key "age" in configs: ' . "\n" .
412+ 'Duplicate key "age" in the following configs while building "params" group : ' . "\n" .
413413 ' - vendor/package/a/params.php ' . "\n" .
414414 ' - vendor/package/b/params.php '
415415 );
@@ -427,7 +427,7 @@ public function testDuplicateVendorKeysErrorMessageWithReverseMerge(): void
427427
428428 $ this ->expectException (ErrorException::class);
429429 $ this ->expectErrorMessage (
430- 'Duplicate key "age" in configs: ' . "\n" .
430+ 'Duplicate key "age" in the following configs while building "params" group : ' . "\n" .
431431 ' - vendor/package/a/params.php ' . "\n" .
432432 ' - vendor/package/b/params.php '
433433 );
@@ -444,7 +444,9 @@ public function testDuplicateKeysWithRecursiveKeyPathErrorMessage(): void
444444 );
445445
446446 $ this ->expectException (ErrorException::class);
447- $ this ->expectErrorMessageMatches ('~^Duplicate key "name => first-name" in~ ' );
447+ $ this ->expectErrorMessageMatches (
448+ '~^Duplicate key "name => first-name" in the following configs while building "params" group~ ' ,
449+ );
448450 $ config ->get ('params ' );
449451 }
450452
0 commit comments