@@ -72,7 +72,7 @@ public function testInvalidSessionName($sessionName)
7272 $ this ->expectException (InvalidConfigurationException::class);
7373
7474 $ processor ->processConfiguration (
75- new Configuration (true ),
75+ new Configuration (true , true ),
7676 [[
7777 'http_method_override ' => false ,
7878 'handle_all_throwables ' => true ,
@@ -97,7 +97,7 @@ public static function getTestInvalidSessionName()
9797 public function testAssetsCanBeEnabled ()
9898 {
9999 $ processor = new Processor ();
100- $ configuration = new Configuration (true );
100+ $ configuration = new Configuration (true , true );
101101 $ config = $ processor ->processConfiguration ($ configuration , [[
102102 'http_method_override ' => false ,
103103 'handle_all_throwables ' => true ,
@@ -123,7 +123,7 @@ public function testAssetsCanBeEnabled()
123123 public function testAssetMapperCanBeEnabled ()
124124 {
125125 $ processor = new Processor ();
126- $ configuration = new Configuration (true );
126+ $ configuration = new Configuration (true , true );
127127 $ config = $ processor ->processConfiguration ($ configuration , [[
128128 'http_method_override ' => false ,
129129 'handle_all_throwables ' => true ,
@@ -158,7 +158,7 @@ public function testAssetMapperCanBeEnabled()
158158 public function testAssetMapperPolyfillValue (mixed $ polyfillValue , bool $ isValid , mixed $ expected )
159159 {
160160 $ processor = new Processor ();
161- $ configuration = new Configuration (true );
161+ $ configuration = new Configuration (true , true );
162162
163163 if (!$ isValid ) {
164164 $ this ->expectException (InvalidConfigurationException::class);
@@ -192,7 +192,7 @@ public static function provideImportmapPolyfillTests()
192192 public function testValidAssetsPackageNameConfiguration ($ packageName )
193193 {
194194 $ processor = new Processor ();
195- $ configuration = new Configuration (true );
195+ $ configuration = new Configuration (true , true );
196196 $ config = $ processor ->processConfiguration ($ configuration , [
197197 [
198198 'http_method_override ' => false ,
@@ -222,7 +222,7 @@ public static function provideValidAssetsPackageNameConfigurationTests(): array
222222 public function testInvalidAssetsConfiguration (array $ assetConfig , $ expectedMessage )
223223 {
224224 $ processor = new Processor ();
225- $ configuration = new Configuration (true );
225+ $ configuration = new Configuration (true , true );
226226
227227 $ this ->expectException (InvalidConfigurationException::class);
228228 $ this ->expectExceptionMessage ($ expectedMessage );
@@ -274,7 +274,7 @@ public static function provideInvalidAssetConfigurationTests(): iterable
274274 public function testValidLockConfiguration ($ lockConfig , $ processedConfig )
275275 {
276276 $ processor = new Processor ();
277- $ configuration = new Configuration (true );
277+ $ configuration = new Configuration (true , true );
278278 $ config = $ processor ->processConfiguration ($ configuration , [
279279 [
280280 'http_method_override ' => false ,
@@ -337,7 +337,7 @@ public static function provideValidLockConfigurationTests(): iterable
337337 public function testLockMergeConfigs ()
338338 {
339339 $ processor = new Processor ();
340- $ configuration = new Configuration (true );
340+ $ configuration = new Configuration (true , true );
341341 $ config = $ processor ->processConfiguration ($ configuration , [
342342 [
343343 'http_method_override ' => false ,
@@ -372,7 +372,7 @@ public function testLockMergeConfigs()
372372 public function testValidSemaphoreConfiguration ($ semaphoreConfig , $ processedConfig )
373373 {
374374 $ processor = new Processor ();
375- $ configuration = new Configuration (true );
375+ $ configuration = new Configuration (true , true );
376376 $ config = $ processor ->processConfiguration ($ configuration , [
377377 [
378378 'http_method_override ' => false ,
@@ -426,7 +426,7 @@ public function testItShowANiceMessageIfTwoMessengerBusesAreConfiguredButNoDefau
426426 $ this ->expectException (InvalidConfigurationException::class);
427427 $ this ->expectExceptionMessage ($ expectedMessage );
428428 $ processor = new Processor ();
429- $ configuration = new Configuration (true );
429+ $ configuration = new Configuration (true , true );
430430
431431 $ processor ->processConfiguration ($ configuration , [
432432 'framework ' => [
@@ -447,7 +447,7 @@ public function testItShowANiceMessageIfTwoMessengerBusesAreConfiguredButNoDefau
447447 public function testBusMiddlewareDontMerge ()
448448 {
449449 $ processor = new Processor ();
450- $ configuration = new Configuration (true );
450+ $ configuration = new Configuration (true , true );
451451 $ config = $ processor ->processConfiguration ($ configuration , [
452452 [
453453 'http_method_override ' => false ,
@@ -511,7 +511,7 @@ public function testBusMiddlewareDontMerge()
511511 public function testItErrorsWhenDefaultBusDoesNotExist ()
512512 {
513513 $ processor = new Processor ();
514- $ configuration = new Configuration (true );
514+ $ configuration = new Configuration (true , true );
515515
516516 $ this ->expectException (InvalidConfigurationException::class);
517517 $ this ->expectExceptionMessage ('The specified default bus "foo" is not configured. Available buses are "bar", "baz". ' );
@@ -535,7 +535,7 @@ public function testItErrorsWhenDefaultBusDoesNotExist()
535535 public function testLockCanBeDisabled ()
536536 {
537537 $ processor = new Processor ();
538- $ configuration = new Configuration (true );
538+ $ configuration = new Configuration (true , true );
539539
540540 $ config = $ processor ->processConfiguration ($ configuration , [
541541 [
@@ -552,7 +552,7 @@ public function testLockCanBeDisabled()
552552 public function testEnabledLockNeedsResources ()
553553 {
554554 $ processor = new Processor ();
555- $ configuration = new Configuration (true );
555+ $ configuration = new Configuration (true , true );
556556
557557 $ this ->expectException (InvalidConfigurationException::class);
558558 $ this ->expectExceptionMessage ('Invalid configuration for path "framework.lock": At least one resource must be defined. ' );
@@ -570,7 +570,7 @@ public function testEnabledLockNeedsResources()
570570 public function testSerializerJsonDetailedErrorMessagesEnabledWhenDefaultContextIsConfigured ()
571571 {
572572 $ processor = new Processor ();
573- $ config = $ processor ->processConfiguration (new Configuration (true ), [
573+ $ config = $ processor ->processConfiguration (new Configuration (true , true ), [
574574 [
575575 'http_method_override ' => false ,
576576 'handle_all_throwables ' => true ,
@@ -589,7 +589,7 @@ public function testSerializerJsonDetailedErrorMessagesEnabledWhenDefaultContext
589589 public function testSerializerJsonDetailedErrorMessagesInDefaultContextCanBeDisabled ()
590590 {
591591 $ processor = new Processor ();
592- $ config = $ processor ->processConfiguration (new Configuration (true ), [
592+ $ config = $ processor ->processConfiguration (new Configuration (true , true ), [
593593 [
594594 'http_method_override ' => false ,
595595 'handle_all_throwables ' => true ,
@@ -609,7 +609,7 @@ public function testSerializerJsonDetailedErrorMessagesInDefaultContextCanBeDisa
609609 public function testSerializerJsonDetailedErrorMessagesInDefaultContextCanBeDisabledWithSeveralConfigsBeingMerged ()
610610 {
611611 $ processor = new Processor ();
612- $ config = $ processor ->processConfiguration (new Configuration (true ), [
612+ $ config = $ processor ->processConfiguration (new Configuration (true , true ), [
613613 [
614614 'http_method_override ' => false ,
615615 'handle_all_throwables ' => true ,
@@ -636,7 +636,7 @@ public function testSerializerJsonDetailedErrorMessagesInDefaultContextCanBeDisa
636636 public function testScopedHttpClientsInheritRateLimiterAndRetryFailedConfiguration ()
637637 {
638638 $ processor = new Processor ();
639- $ configuration = new Configuration (true );
639+ $ configuration = new Configuration (true , true );
640640
641641 $ config = $ processor ->processConfiguration ($ configuration , [[
642642 'http_client ' => [
@@ -676,7 +676,7 @@ public function testScopedHttpClientsInheritRateLimiterAndRetryFailedConfigurati
676676 public function testSerializerJsonDetailedErrorMessagesEnabledByDefaultWithDebugEnabled ()
677677 {
678678 $ processor = new Processor ();
679- $ config = $ processor ->processConfiguration (new Configuration (true ), [
679+ $ config = $ processor ->processConfiguration (new Configuration (true , true ), [
680680 [
681681 'serializer ' => null ,
682682 ],
@@ -700,7 +700,7 @@ public function testSerializerJsonDetailedErrorMessagesNotSetByDefaultWithDebugD
700700 public function testWorkflowEnumArcsNormalization ()
701701 {
702702 $ processor = new Processor ();
703- $ configuration = new Configuration (true );
703+ $ configuration = new Configuration (true , true );
704704
705705 $ config = $ processor ->processConfiguration ($ configuration , [[
706706 'http_method_override ' => false ,
@@ -767,7 +767,7 @@ public function testInvalidHttpMethodOverride(string $method)
767767 $ this ->expectExceptionMessage ('The HTTP methods "GET", "HEAD", "CONNECT", and "TRACE" cannot be overridden. ' );
768768
769769 $ processor ->processConfiguration (
770- new Configuration (true ),
770+ new Configuration (true , true ),
771771 [[
772772 'allowed_http_method_override ' => [$ method ],
773773 ]]
@@ -1074,7 +1074,7 @@ class_exists(SemaphoreStore::class) && SemaphoreStore::isSupported() ? 'semaphor
10741074 public function testNamedSerializersReservedName ()
10751075 {
10761076 $ processor = new Processor ();
1077- $ configuration = new Configuration (true );
1077+ $ configuration = new Configuration (true , true );
10781078
10791079 $ this ->expectException (InvalidConfigurationException::class);
10801080 $ this ->expectExceptionMessage ('Invalid configuration for path "framework.serializer.named_serializers": "default" is a reserved name. ' );
0 commit comments