|
16 | 16 | use Kahlan\Plugin\Double; |
17 | 17 | use Laminas\ServiceManager\ServiceManager; |
18 | 18 | use Mezzio\Template\TemplateRendererInterface; |
19 | | -use Northwoods\Container\InjectorContainer as AurynInjectorContainer; |
| 19 | +use Northwoods\Container\InjectorContainer; |
20 | 20 | use PDO; |
21 | 21 | use Pimple\Container as PimpleContainer; |
22 | 22 | use Pimple\Psr11\Container as Psr11PimpleContainer; |
|
30 | 30 | given('mapCreateContainers', fn() : array => [ |
31 | 31 | AuraContainer::class => (new AuraContainerBuilder())->newInstance(), |
32 | 32 | SymfonyContainerBuilder::class => new SymfonyContainerBuilder(), |
33 | | - AurynInjectorContainer::class => new AurynInjectorContainer(new Injector()), |
| 33 | + InjectorContainer::class => new InjectorContainer(new Injector()), |
34 | 34 | Psr11PimpleContainer::class => new Psr11PimpleContainer(new PimpleContainer()), |
35 | 35 | ]); |
36 | 36 |
|
|
207 | 207 | if ($container instanceof AuraContainer) { |
208 | 208 | $config = new ArrayObject($config); |
209 | 209 | } |
| 210 | + |
210 | 211 | allow($container)->toReceive('get')->with('config') |
211 | 212 | ->andReturn($config); |
212 | 213 | if ($container instanceof AuraContainer) { |
213 | 214 | $config = $config->getArrayCopy(); |
214 | 215 | } |
| 216 | + |
215 | 217 | allow($container)->toReceive('has')->with(EntityManager::class)->andReturn(false); |
216 | 218 |
|
217 | 219 | $logging = Double::instance(['extends' => Logging::class, 'methods' => '__construct']); |
|
245 | 247 | if ($container instanceof AuraContainer) { |
246 | 248 | $config = new ArrayObject($config); |
247 | 249 | } |
| 250 | + |
248 | 251 | allow($container)->toReceive('get')->with('config') |
249 | 252 | ->andReturn($config); |
250 | 253 | if ($container instanceof AuraContainer) { |
251 | 254 | $config = $config->getArrayCopy(); |
252 | 255 | } |
| 256 | + |
253 | 257 | allow($container)->toReceive('has')->with(EntityManager::class)->andReturn(false); |
254 | 258 |
|
255 | 259 | $logging = Double::instance(['extends' => Logging::class, 'methods' => '__construct']); |
|
276 | 280 | if ($container instanceof AuraContainer) { |
277 | 281 | $config = new ArrayObject($config); |
278 | 282 | } |
| 283 | + |
279 | 284 | allow($container)->toReceive('get')->with('config') |
280 | 285 | ->andReturn($config); |
281 | 286 | if ($container instanceof AuraContainer) { |
282 | 287 | $config = $config->getArrayCopy(); |
283 | 288 | } |
| 289 | + |
284 | 290 | allow($container)->toReceive('has')->with(EntityManager::class)->andReturn(false); |
285 | 291 |
|
286 | 292 | $logging = Double::instance(['extends' => Logging::class, 'methods' => '__construct']); |
|
306 | 312 | if ($container instanceof AuraContainer) { |
307 | 313 | $config = new ArrayObject($config); |
308 | 314 | } |
| 315 | + |
309 | 316 | allow($container)->toReceive('get')->with('config') |
310 | 317 | ->andReturn($config); |
311 | 318 | if ($container instanceof AuraContainer) { |
312 | 319 | $config = $config->getArrayCopy(); |
313 | 320 | } |
| 321 | + |
314 | 322 | allow($container)->toReceive('has')->with(EntityManager::class)->andReturn(false); |
315 | 323 |
|
316 | 324 | $logging = Double::instance(['extends' => Logging::class, 'methods' => '__construct']); |
|
0 commit comments