@@ -28,48 +28,6 @@ public function testCouldBeConstructedWithDebugAsArgument()
28
28
new Configuration (true );
29
29
}
30
30
31
- public function testShouldProcessNullAsDefaultNullTransport ()
32
- {
33
- $ configuration = new Configuration (true );
34
-
35
- $ processor = new Processor ();
36
- $ config = $ processor ->processConfiguration ($ configuration , [null ]);
37
-
38
- $ this ->assertConfigEquals ([
39
- 'default ' => [
40
- 'transport ' => ['dsn ' => 'null: ' ],
41
- ],
42
- ], $ config );
43
- }
44
-
45
- public function testShouldProcessStringAsDefaultDsnTransport ()
46
- {
47
- $ configuration = new Configuration (true );
48
-
49
- $ processor = new Processor ();
50
- $ config = $ processor ->processConfiguration ($ configuration , ['foo://bar?option=val ' ]);
51
-
52
- $ this ->assertConfigEquals ([
53
- 'default ' => [
54
- 'transport ' => ['dsn ' => 'foo://bar?option=val ' ],
55
- ],
56
- ], $ config );
57
- }
58
-
59
- public function testShouldProcessEmptyArrayAsDefaultNullTransport ()
60
- {
61
- $ configuration = new Configuration (true );
62
-
63
- $ processor = new Processor ();
64
- $ config = $ processor ->processConfiguration ($ configuration , [[]]);
65
-
66
- $ this ->assertConfigEquals ([
67
- 'default ' => [
68
- 'transport ' => ['dsn ' => 'null: ' ],
69
- ],
70
- ], $ config );
71
- }
72
-
73
31
public function testShouldProcessSeveralTransports ()
74
32
{
75
33
$ configuration = new Configuration (true );
@@ -118,32 +76,6 @@ public function testTransportFactoryShouldValidateEachTransportAccordingToItsRul
118
76
]);
119
77
}
120
78
121
- public function testShouldUseDefaultConfigurationIfNothingIsConfiguredAtAll ()
122
- {
123
- $ configuration = new Configuration (true );
124
-
125
- $ processor = new Processor ();
126
- $ config = $ processor ->processConfiguration ($ configuration , [[]]);
127
-
128
- $ this ->assertEquals ([
129
- 'default ' => [
130
- 'transport ' => ['dsn ' => 'null: ' ],
131
- 'consumption ' => [
132
- 'receive_timeout ' => 10000 ,
133
- ],
134
- // 'job' => false,
135
- // 'async_events' => ['enabled' => false],
136
- 'async_commands ' => ['enabled ' => false ],
137
- 'extensions ' => [
138
- 'doctrine_ping_connection_extension ' => false ,
139
- 'doctrine_clear_identity_map_extension ' => false ,
140
- 'signal_extension ' => function_exists ('pcntl_signal_dispatch ' ),
141
- 'reply_extension ' => true ,
142
- ],
143
- ],
144
- ], $ config );
145
- }
146
-
147
79
public function testShouldSetDefaultConfigurationForClient ()
148
80
{
149
81
$ configuration = new Configuration (true );
@@ -264,7 +196,11 @@ public function testDoctrinePingConnectionExtensionShouldBeDisabledByDefault()
264
196
$ configuration = new Configuration (true );
265
197
266
198
$ processor = new Processor ();
267
- $ config = $ processor ->processConfiguration ($ configuration , [[]]);
199
+ $ config = $ processor ->processConfiguration ($ configuration , [[
200
+ 'default ' => [
201
+ 'transport ' => null ,
202
+ ]
203
+ ]]);
268
204
269
205
$ this ->assertArraySubset ([
270
206
'default ' => [
@@ -303,7 +239,11 @@ public function testDoctrineClearIdentityMapExtensionShouldBeDisabledByDefault()
303
239
$ configuration = new Configuration (true );
304
240
305
241
$ processor = new Processor ();
306
- $ config = $ processor ->processConfiguration ($ configuration , [[]]);
242
+ $ config = $ processor ->processConfiguration ($ configuration , [[
243
+ 'default ' => [
244
+ 'transport ' => null ,
245
+ ]
246
+ ]]);
307
247
308
248
$ this ->assertArraySubset ([
309
249
'default ' => [
0 commit comments