Skip to content

Commit 341024c

Browse files
committed
Remove unused local variables in tests
1 parent bc5a4e8 commit 341024c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/DependencyInjection/Security/Factory/AbstractFactoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testDefaultFailureHandler($serviceId, $defaultHandlerInjection)
6161
$options['failure_handler'] = $serviceId;
6262
}
6363

64-
list($container, $authProviderId, $listenerId, $entryPointId) = $this->callFactory('foo', $options, 'user_provider', 'entry_point');
64+
list($container) = $this->callFactory('foo', $options, 'user_provider', 'entry_point');
6565

6666
$definition = $container->getDefinition('abstract_listener.foo');
6767
$arguments = $definition->getArguments();
@@ -99,7 +99,7 @@ public function testDefaultSuccessHandler($serviceId, $defaultHandlerInjection)
9999
$options['success_handler'] = $serviceId;
100100
}
101101

102-
list($container, $authProviderId, $listenerId, $entryPointId) = $this->callFactory('foo', $options, 'user_provider', 'entry_point');
102+
list($container) = $this->callFactory('foo', $options, 'user_provider', 'entry_point');
103103

104104
$definition = $container->getDefinition('abstract_listener.foo');
105105
$arguments = $definition->getArguments();

Tests/DependencyInjection/Security/Factory/GuardAuthenticationFactoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function testCreateWithEntryPoint()
159159
'authenticators' => ['authenticator123', 'authenticatorABC'],
160160
'entry_point' => 'authenticatorABC',
161161
];
162-
list($container, $entryPointId) = $this->executeCreate($config, null);
162+
list(, $entryPointId) = $this->executeCreate($config, null);
163163
$this->assertEquals('authenticatorABC', $entryPointId);
164164
}
165165

@@ -172,7 +172,7 @@ private function executeCreate(array $config, $defaultEntryPointId)
172172
$userProviderId = 'my_user_provider';
173173

174174
$factory = new GuardAuthenticationFactory();
175-
list($providerId, $listenerId, $entryPointId) = $factory->create($container, $id, $config, $userProviderId, $defaultEntryPointId);
175+
list(, , $entryPointId) = $factory->create($container, $id, $config, $userProviderId, $defaultEntryPointId);
176176

177177
return [$container, $entryPointId];
178178
}

0 commit comments

Comments
 (0)