@@ -184,8 +184,8 @@ public function testExceptsWhenConfigNotSet()
184
184
{
185
185
$ abstractFactory = new ConfigAbstractFactory ();
186
186
$ serviceManager = new ServiceManager ();
187
- self :: expectException (ServiceNotCreatedException::class);
188
- self :: expectExceptionMessage ('Cannot find a config array in the container ' );
187
+ $ this -> expectException (ServiceNotCreatedException::class);
188
+ $ this -> expectExceptionMessage ('Cannot find a config array in the container ' );
189
189
190
190
$ abstractFactory ($ serviceManager , 'Dirk_Gently ' );
191
191
}
@@ -195,8 +195,8 @@ public function testExceptsWhenConfigKeyNotSet()
195
195
$ abstractFactory = new ConfigAbstractFactory ();
196
196
$ serviceManager = new ServiceManager ();
197
197
$ serviceManager ->setService ('config ' , []);
198
- self :: expectException (ServiceNotCreatedException::class);
199
- self :: expectExceptionMessage ('Cannot find a ` ' . ConfigAbstractFactory::class . '` key in the config array ' );
198
+ $ this -> expectException (ServiceNotCreatedException::class);
199
+ $ this -> expectExceptionMessage ('Cannot find a ` ' . ConfigAbstractFactory::class . '` key in the config array ' );
200
200
201
201
$ abstractFactory ($ serviceManager , 'Dirk_Gently ' );
202
202
}
@@ -206,8 +206,8 @@ public function testExceptsWhenConfigIsNotArray()
206
206
$ abstractFactory = new ConfigAbstractFactory ();
207
207
$ serviceManager = new ServiceManager ();
208
208
$ serviceManager ->setService ('config ' , 'Holistic ' );
209
- self :: expectException (ServiceNotCreatedException::class);
210
- self :: expectExceptionMessage ('Config must be an array ' );
209
+ $ this -> expectException (ServiceNotCreatedException::class);
210
+ $ this -> expectExceptionMessage ('Config must be an array ' );
211
211
212
212
$ abstractFactory ($ serviceManager , 'Dirk_Gently ' );
213
213
}
@@ -222,8 +222,8 @@ public function testExceptsWhenServiceConfigIsNotArray()
222
222
ConfigAbstractFactory::class => 'Detective_Agency '
223
223
]
224
224
);
225
- self :: expectException (ServiceNotCreatedException::class);
226
- self :: expectExceptionMessage ('Dependencies config must exist and be an array ' );
225
+ $ this -> expectException (ServiceNotCreatedException::class);
226
+ $ this -> expectExceptionMessage ('Dependencies config must exist and be an array ' );
227
227
228
228
$ abstractFactory ($ serviceManager , 'Dirk_Gently ' );
229
229
}
@@ -238,8 +238,8 @@ public function testExceptsWhenServiceConfigDoesNotExist()
238
238
ConfigAbstractFactory::class => [],
239
239
]
240
240
);
241
- self :: expectException (ServiceNotCreatedException::class);
242
- self :: expectExceptionMessage ('Dependencies config must exist and be an array ' );
241
+ $ this -> expectException (ServiceNotCreatedException::class);
242
+ $ this -> expectExceptionMessage ('Dependencies config must exist and be an array ' );
243
243
244
244
$ abstractFactory ($ serviceManager , 'Dirk_Gently ' );
245
245
}
@@ -256,8 +256,8 @@ public function testExceptsWhenServiceConfigForRequestedNameIsNotArray()
256
256
],
257
257
]
258
258
);
259
- self :: expectException (ServiceNotCreatedException::class);
260
- self :: expectExceptionMessage ('Dependencies config must exist and be an array ' );
259
+ $ this -> expectException (ServiceNotCreatedException::class);
260
+ $ this -> expectExceptionMessage ('Dependencies config must exist and be an array ' );
261
261
262
262
$ abstractFactory ($ serviceManager , 'Dirk_Gently ' );
263
263
}
@@ -279,8 +279,8 @@ public function testExceptsWhenServiceConfigForRequestedNameIsNotArrayOfStrings(
279
279
],
280
280
]
281
281
);
282
- self :: expectException (ServiceNotCreatedException::class);
283
- self :: expectExceptionMessage (
282
+ $ this -> expectException (ServiceNotCreatedException::class);
283
+ $ this -> expectExceptionMessage (
284
284
'Service message must be an array of strings, ["string","string","string","integer"] given '
285
285
);
286
286
0 commit comments