Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit ac96f2e

Browse files
committed
Removed unused variables
1 parent 1ccc5be commit ac96f2e

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

test/AbstractFactory/ReflectionBasedAbstractFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function testFactoryRaisesExceptionForScalarParameters()
7171
'Unable to create service "%s"; unable to resolve parameter "foo" to a class, interface, or array type',
7272
TestAsset\ClassWithScalarParameters::class
7373
));
74-
$instance = $factory($this->container->reveal(), TestAsset\ClassWithScalarParameters::class);
74+
$factory($this->container->reveal(), TestAsset\ClassWithScalarParameters::class);
7575
}
7676

7777
public function testFactoryInjectsConfigServiceForConfigArgumentsTypeHintedAsArray()

test/CommonServiceLocatorBehaviorsTrait.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ public function testPassingInvalidAbstractFactoryTypeViaConfigurationRaisesExcep
514514
) {
515515
$this->expectException(InvalidArgumentException::class);
516516
$this->expectExceptionMessage($contains);
517-
$serviceManager = $this->createContainer([
517+
$this->createContainer([
518518
'abstract_factories' => [
519519
$factory,
520520
],
@@ -555,7 +555,7 @@ public function testPassingInvalidInitializerTypeViaConfigurationRaisesException
555555
) {
556556
$this->expectException(InvalidArgumentException::class);
557557
$this->expectExceptionMessage($contains);
558-
$serviceManager = $this->createContainer([
558+
$this->createContainer([
559559
'initializers' => [
560560
$initializer,
561561
],
@@ -589,9 +589,6 @@ public function testInvalidDelegatorShouldRaiseExceptionDuringCreation(
589589
$delegator,
590590
$contains = 'non-callable delegator'
591591
) {
592-
$config = [
593-
'option' => 'OPTIONED',
594-
];
595592
$serviceManager = $this->createContainer([
596593
'factories' => [
597594
stdClass::class => InvokableFactory::class,

test/Tool/ConfigDumperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function testCreateDependencyConfigWithoutTypeHintedParameterExcepts()
9797
'Cannot create config for constructor argument "aName", '
9898
. 'it has no type hint, or non-class/interface type hint'
9999
);
100-
$config = $this->dumper->createDependencyConfig(
100+
$this->dumper->createDependencyConfig(
101101
[ConfigAbstractFactory::class => []],
102102
ObjectWithScalarDependency::class
103103
);
@@ -117,7 +117,7 @@ public function testCreateDependencyConfigWithContainerAndNoServiceWithoutTypeHi
117117

118118
$dumper = new ConfigDumper($container->reveal());
119119

120-
$config = $dumper->createDependencyConfig(
120+
$dumper->createDependencyConfig(
121121
[ConfigAbstractFactory::class => []],
122122
ObjectWithScalarDependency::class
123123
);

0 commit comments

Comments
 (0)