@@ -191,7 +191,7 @@ public function testExceptsWhenServiceConfigIsNotArray()
191
191
]
192
192
);
193
193
self ::expectException (ServiceNotCreatedException::class);
194
- self ::expectExceptionMessage ('Dependencies config must exist and be an array of strings ' );
194
+ self ::expectExceptionMessage ('Dependencies config must exist and be an array ' );
195
195
196
196
$ abstractFactory ($ serviceManager , 'Dirk_Gently ' );
197
197
}
@@ -207,7 +207,7 @@ public function testExceptsWhenServiceConfigDoesNotExist()
207
207
]
208
208
);
209
209
self ::expectException (ServiceNotCreatedException::class);
210
- self ::expectExceptionMessage ('Dependencies config must exist and be an array of strings ' );
210
+ self ::expectExceptionMessage ('Dependencies config must exist and be an array ' );
211
211
212
212
$ abstractFactory ($ serviceManager , 'Dirk_Gently ' );
213
213
}
@@ -225,7 +225,7 @@ public function testExceptsWhenServiceConfigForRequestedNameIsNotArray()
225
225
]
226
226
);
227
227
self ::expectException (ServiceNotCreatedException::class);
228
- self ::expectExceptionMessage ('Dependencies config must exist and be an array of strings ' );
228
+ self ::expectExceptionMessage ('Dependencies config must exist and be an array ' );
229
229
230
230
$ abstractFactory ($ serviceManager , 'Dirk_Gently ' );
231
231
}
@@ -248,8 +248,10 @@ public function testExceptsWhenServiceConfigForRequestedNameIsNotArrayOfStrings(
248
248
]
249
249
);
250
250
self ::expectException (ServiceNotCreatedException::class);
251
- self ::expectExceptionMessage ('Dependencies config must exist and be an array of strings ' );
251
+ self ::expectExceptionMessage (
252
+ 'Service message must be an array of strings, ["string","string","string","integer"] given '
253
+ );
252
254
253
- $ abstractFactory ($ serviceManager , 'Dirk_Gently ' );
255
+ $ abstractFactory ($ serviceManager , 'DirkGently ' );
254
256
}
255
257
}
0 commit comments