Skip to content

Commit 90d6605

Browse files
committed
replace assertEmpty() with stricter assertions
1 parent cfbe003 commit 90d6605

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/OptionsResolverTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,7 @@ public function testNormalizerNotCalledForUnsetOptions()
15851585
Assert::fail('Should not be called.');
15861586
});
15871587

1588-
$this->assertEmpty($this->resolver->resolve());
1588+
$this->assertSame([], $this->resolver->resolve());
15891589
}
15901590

15911591
public function testAddNormalizerReturnsThis()
@@ -1768,7 +1768,7 @@ public function testClearRemovesAllOptions()
17681768

17691769
$this->resolver->clear();
17701770

1771-
$this->assertEmpty($this->resolver->resolve());
1771+
$this->assertSame([], $this->resolver->resolve());
17721772
}
17731773

17741774
public function testClearLazyOption()
@@ -1829,7 +1829,7 @@ public function testClearOptionAndNormalizer()
18291829
$this->resolver->setNormalizer('foo2', fn (Options $options) => '');
18301830

18311831
$this->resolver->clear();
1832-
$this->assertEmpty($this->resolver->resolve());
1832+
$this->assertSame([], $this->resolver->resolve());
18331833
}
18341834

18351835
public function testArrayAccess()

0 commit comments

Comments
 (0)