@@ -24,23 +24,23 @@ public function testShouldImplementConfigurationInterface()
24
24
25
25
public function testCouldBeConstructedWithFactoriesAsFirstArgument ()
26
26
{
27
- new Configuration ([]);
27
+ new Configuration ([], true );
28
28
}
29
29
30
30
public function testThrowIfTransportNotConfigured ()
31
31
{
32
32
$ this ->expectException (InvalidConfigurationException::class);
33
33
$ this ->expectExceptionMessage ('The child node "transport" at path "enqueue" must be configured. ' );
34
34
35
- $ configuration = new Configuration ([]);
35
+ $ configuration = new Configuration ([], true );
36
36
37
37
$ processor = new Processor ();
38
38
$ processor ->processConfiguration ($ configuration , [[]]);
39
39
}
40
40
41
41
public function testShouldInjectFooTransportFactoryConfig ()
42
42
{
43
- $ configuration = new Configuration ([new FooTransportFactory ()]);
43
+ $ configuration = new Configuration ([new FooTransportFactory ()], true );
44
44
45
45
$ processor = new Processor ();
46
46
$ processor ->processConfiguration ($ configuration , [[
@@ -54,7 +54,7 @@ public function testShouldInjectFooTransportFactoryConfig()
54
54
55
55
public function testThrowExceptionIfFooTransportConfigInvalid ()
56
56
{
57
- $ configuration = new Configuration ([new FooTransportFactory ()]);
57
+ $ configuration = new Configuration ([new FooTransportFactory ()], true );
58
58
59
59
$ processor = new Processor ();
60
60
@@ -72,7 +72,7 @@ public function testThrowExceptionIfFooTransportConfigInvalid()
72
72
73
73
public function testShouldAllowConfigureDefaultTransport ()
74
74
{
75
- $ configuration = new Configuration ([new DefaultTransportFactory ()]);
75
+ $ configuration = new Configuration ([new DefaultTransportFactory ()], true );
76
76
77
77
$ processor = new Processor ();
78
78
$ processor ->processConfiguration ($ configuration , [[
@@ -84,7 +84,7 @@ public function testShouldAllowConfigureDefaultTransport()
84
84
85
85
public function testShouldAllowConfigureNullTransport ()
86
86
{
87
- $ configuration = new Configuration ([new NullTransportFactory ()]);
87
+ $ configuration = new Configuration ([new NullTransportFactory ()], true );
88
88
89
89
$ processor = new Processor ();
90
90
$ config = $ processor ->processConfiguration ($ configuration , [[
@@ -106,7 +106,7 @@ public function testShouldAllowConfigureSeveralTransportsSameTime()
106
106
new NullTransportFactory (),
107
107
new DefaultTransportFactory (),
108
108
new FooTransportFactory (),
109
- ]);
109
+ ], true );
110
110
111
111
$ processor = new Processor ();
112
112
$ config = $ processor ->processConfiguration ($ configuration , [[
@@ -128,7 +128,7 @@ public function testShouldAllowConfigureSeveralTransportsSameTime()
128
128
129
129
public function testShouldSetDefaultConfigurationForClient ()
130
130
{
131
- $ configuration = new Configuration ([new DefaultTransportFactory ()]);
131
+ $ configuration = new Configuration ([new DefaultTransportFactory ()], true );
132
132
133
133
$ processor = new Processor ();
134
134
$ config = $ processor ->processConfiguration ($ configuration , [[
@@ -149,7 +149,7 @@ public function testShouldSetDefaultConfigurationForClient()
149
149
'router_topic ' => 'default ' ,
150
150
'router_queue ' => 'default ' ,
151
151
'default_processor_queue ' => 'default ' ,
152
- 'traceable_producer ' => false ,
152
+ 'traceable_producer ' => true ,
153
153
'redelivered_delay_time ' => 0 ,
154
154
],
155
155
], $ config );
@@ -160,7 +160,7 @@ public function testThrowExceptionIfRouterTopicIsEmpty()
160
160
$ this ->expectException (InvalidConfigurationException::class);
161
161
$ this ->expectExceptionMessage ('The path "enqueue.client.router_topic" cannot contain an empty value, but got "". ' );
162
162
163
- $ configuration = new Configuration ([new DefaultTransportFactory ()]);
163
+ $ configuration = new Configuration ([new DefaultTransportFactory ()], true );
164
164
165
165
$ processor = new Processor ();
166
166
$ processor ->processConfiguration ($ configuration , [[
@@ -178,7 +178,7 @@ public function testThrowExceptionIfRouterQueueIsEmpty()
178
178
$ this ->expectException (InvalidConfigurationException::class);
179
179
$ this ->expectExceptionMessage ('The path "enqueue.client.router_queue" cannot contain an empty value, but got "". ' );
180
180
181
- $ configuration = new Configuration ([new DefaultTransportFactory ()]);
181
+ $ configuration = new Configuration ([new DefaultTransportFactory ()], true );
182
182
183
183
$ processor = new Processor ();
184
184
$ processor ->processConfiguration ($ configuration , [[
@@ -193,7 +193,7 @@ public function testThrowExceptionIfRouterQueueIsEmpty()
193
193
194
194
public function testShouldThrowExceptionIfDefaultProcessorQueueIsEmpty ()
195
195
{
196
- $ configuration = new Configuration ([new DefaultTransportFactory ()]);
196
+ $ configuration = new Configuration ([new DefaultTransportFactory ()], true );
197
197
198
198
$ processor = new Processor ();
199
199
@@ -211,7 +211,7 @@ public function testShouldThrowExceptionIfDefaultProcessorQueueIsEmpty()
211
211
212
212
public function testJobShouldBeDisabledByDefault ()
213
213
{
214
- $ configuration = new Configuration ([]);
214
+ $ configuration = new Configuration ([], true );
215
215
216
216
$ processor = new Processor ();
217
217
$ config = $ processor ->processConfiguration ($ configuration , [[
@@ -225,7 +225,7 @@ public function testJobShouldBeDisabledByDefault()
225
225
226
226
public function testCouldEnableJob ()
227
227
{
228
- $ configuration = new Configuration ([]);
228
+ $ configuration = new Configuration ([], true );
229
229
230
230
$ processor = new Processor ();
231
231
$ config = $ processor ->processConfiguration ($ configuration , [[
@@ -240,7 +240,7 @@ public function testCouldEnableJob()
240
240
241
241
public function testDoctrinePingConnectionExtensionShouldBeDisabledByDefault ()
242
242
{
243
- $ configuration = new Configuration ([]);
243
+ $ configuration = new Configuration ([], true );
244
244
245
245
$ processor = new Processor ();
246
246
$ config = $ processor ->processConfiguration ($ configuration , [[
@@ -256,7 +256,7 @@ public function testDoctrinePingConnectionExtensionShouldBeDisabledByDefault()
256
256
257
257
public function testDoctrinePingConnectionExtensionCouldBeEnabled ()
258
258
{
259
- $ configuration = new Configuration ([]);
259
+ $ configuration = new Configuration ([], true );
260
260
261
261
$ processor = new Processor ();
262
262
$ config = $ processor ->processConfiguration ($ configuration , [[
@@ -275,7 +275,7 @@ public function testDoctrinePingConnectionExtensionCouldBeEnabled()
275
275
276
276
public function testDoctrineClearIdentityMapExtensionShouldBeDisabledByDefault ()
277
277
{
278
- $ configuration = new Configuration ([]);
278
+ $ configuration = new Configuration ([], true );
279
279
280
280
$ processor = new Processor ();
281
281
$ config = $ processor ->processConfiguration ($ configuration , [[
@@ -291,7 +291,7 @@ public function testDoctrineClearIdentityMapExtensionShouldBeDisabledByDefault()
291
291
292
292
public function testDoctrineClearIdentityMapExtensionCouldBeEnabled ()
293
293
{
294
- $ configuration = new Configuration ([]);
294
+ $ configuration = new Configuration ([], true );
295
295
296
296
$ processor = new Processor ();
297
297
$ config = $ processor ->processConfiguration ($ configuration , [[
@@ -310,7 +310,7 @@ public function testDoctrineClearIdentityMapExtensionCouldBeEnabled()
310
310
311
311
public function testSignalExtensionShouldBeEnabledByDefault ()
312
312
{
313
- $ configuration = new Configuration ([]);
313
+ $ configuration = new Configuration ([], true );
314
314
315
315
$ processor = new Processor ();
316
316
$ config = $ processor ->processConfiguration ($ configuration , [[
@@ -326,7 +326,7 @@ public function testSignalExtensionShouldBeEnabledByDefault()
326
326
327
327
public function testSignalExtensionCouldBeDisabled ()
328
328
{
329
- $ configuration = new Configuration ([]);
329
+ $ configuration = new Configuration ([], true );
330
330
331
331
$ processor = new Processor ();
332
332
$ config = $ processor ->processConfiguration ($ configuration , [[
@@ -345,7 +345,7 @@ public function testSignalExtensionCouldBeDisabled()
345
345
346
346
public function testReplyExtensionShouldBeEnabledByDefault ()
347
347
{
348
- $ configuration = new Configuration ([]);
348
+ $ configuration = new Configuration ([], true );
349
349
350
350
$ processor = new Processor ();
351
351
$ config = $ processor ->processConfiguration ($ configuration , [[
@@ -361,7 +361,7 @@ public function testReplyExtensionShouldBeEnabledByDefault()
361
361
362
362
public function testReplyExtensionCouldBeDisabled ()
363
363
{
364
- $ configuration = new Configuration ([]);
364
+ $ configuration = new Configuration ([], true );
365
365
366
366
$ processor = new Processor ();
367
367
$ config = $ processor ->processConfiguration ($ configuration , [[
@@ -380,7 +380,7 @@ public function testReplyExtensionCouldBeDisabled()
380
380
381
381
public function testShouldDisableAsyncEventsByDefault ()
382
382
{
383
- $ configuration = new Configuration ([]);
383
+ $ configuration = new Configuration ([], true );
384
384
385
385
$ processor = new Processor ();
386
386
$ config = $ processor ->processConfiguration ($ configuration , [[
@@ -396,7 +396,7 @@ public function testShouldDisableAsyncEventsByDefault()
396
396
397
397
public function testShouldAllowEnableAsyncEvents ()
398
398
{
399
- $ configuration = new Configuration ([]);
399
+ $ configuration = new Configuration ([], true );
400
400
401
401
$ processor = new Processor ();
402
402
@@ -427,7 +427,7 @@ public function testShouldAllowEnableAsyncEvents()
427
427
428
428
public function testShouldSetDefaultConfigurationForConsumption ()
429
429
{
430
- $ configuration = new Configuration ([]);
430
+ $ configuration = new Configuration ([], true );
431
431
432
432
$ processor = new Processor ();
433
433
$ config = $ processor ->processConfiguration ($ configuration , [[
@@ -444,7 +444,7 @@ public function testShouldSetDefaultConfigurationForConsumption()
444
444
445
445
public function testShouldAllowConfigureConsumption ()
446
446
{
447
- $ configuration = new Configuration ([]);
447
+ $ configuration = new Configuration ([], true );
448
448
449
449
$ processor = new Processor ();
450
450
$ config = $ processor ->processConfiguration ($ configuration , [[
0 commit comments