Skip to content

Commit a0c8df6

Browse files
committed
clean up ExpressiveFactory spec
1 parent 554432b commit a0c8df6

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

spec/Middleware/ExpressiveFactorySpec.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,7 @@
206206

207207
it('throws RuntimeException when using mapped containers but no "db" config', function () {
208208

209-
foreach ($this->mapCreateContainers as $containerClass => $containerInstance) {
210-
$container = $containerInstance;
209+
foreach ($this->mapCreateContainers as $containerClass => $container) {
211210
allow($container)->toReceive('get')->with('config')
212211
->andReturn([]);
213212

@@ -236,10 +235,9 @@
236235

237236
it('returns Expressive Middleware instance with create service first for mapped containers and db name found in adapters', function () {
238237

239-
foreach ($this->mapCreateContainers as $containerInstance) {
238+
foreach ($this->mapCreateContainers as $container) {
240239
$config = $this->config;
241240
$config['log']['ErrorHeroModuleLogger']['writers'][0]['options']['db'] = 'my-adapter';
242-
$container = $containerInstance;
243241
allow($container)->toReceive('get')->with('config')
244242
->andReturn($config);
245243

@@ -263,8 +261,7 @@
263261

264262
it('returns Expressive Middleware instance with create services first for mapped containers and db name not found in adapters, which means use "Zend\Db\Adapter\Adapter" name', function () {
265263

266-
foreach ($this->mapCreateContainers as $containerInstance) {
267-
$container = $containerInstance;
264+
foreach ($this->mapCreateContainers as $container) {
268265
allow($container)->toReceive('get')->with('config')
269266
->andReturn($this->config);
270267

0 commit comments

Comments
 (0)