Skip to content

Commit 56cd446

Browse files
committed
Fix container propagation tests
1 parent 5ba90af commit 56cd446

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/src/ContainerPropagatesToFinderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public function setUp()
2525
{
2626
parent::setUp();
2727

28-
$this->pool->setContainer(new Container([
29-
'dependency' => 'it works!',
30-
]));
28+
$container = new Container(['dependency' => 'it works!']);
29+
30+
$this->pool->setContainer($container);
3131
$this->assertTrue($this->pool->hasContainer());
3232
$this->assertInstanceOf(Container::class, $this->pool->getContainer());
3333

test/src/ContainerPropagatesToObjectTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public function setUp()
2424
{
2525
parent::setUp();
2626

27-
$this->pool->setContainer(new Container([
28-
'is_special' => true,
29-
]));
27+
$container = new Container(['is_special' => true]);
28+
29+
$this->pool->setContainer($container);
3030
$this->assertTrue($this->pool->hasContainer());
3131
$this->assertInstanceOf(Container::class, $this->pool->getContainer());
3232
}

0 commit comments

Comments
 (0)