From d28e7e2db8a73e9511df892d36445f61314bbebe Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Fri, 1 Aug 2025 17:44:34 +0200 Subject: [PATCH] Fix wrong boolean values --- Tests/OptionsResolverTest.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Tests/OptionsResolverTest.php b/Tests/OptionsResolverTest.php index a0e5f9f..a9f3aaf 100644 --- a/Tests/OptionsResolverTest.php +++ b/Tests/OptionsResolverTest.php @@ -1368,7 +1368,6 @@ public function testNormalizerCanAccessOtherOptions() $this->resolver->setDefault('norm', 'baz'); $this->resolver->setNormalizer('norm', function (Options $options) { - /** @var TestCase $test */ Assert::assertSame('bar', $options['default']); return 'normalized'; @@ -1386,8 +1385,7 @@ public function testNormalizerCanAccessLazyOptions() $this->resolver->setDefault('norm', 'baz'); $this->resolver->setNormalizer('norm', function (Options $options) { - /** @var TestCase $test */ - Assert::assertEquals('bar', $options['lazy']); + Assert::assertSame('bar', $options['lazy']); return 'normalized'; }); @@ -2417,9 +2415,9 @@ public function testResolveOptionsDefinedByOptionConfigurator() ; $introspector = new OptionsResolverIntrospector($this->resolver); - $this->assertTrue(true, $this->resolver->isDefined('foo')); - $this->assertTrue(true, $this->resolver->isDeprecated('foo')); - $this->assertTrue(true, $this->resolver->hasDefault('foo')); + $this->assertTrue($this->resolver->isDefined('foo')); + $this->assertTrue($this->resolver->isDeprecated('foo')); + $this->assertTrue($this->resolver->hasDefault('foo')); $this->assertSame('bar', $introspector->getDefault('foo')); $this->assertSame(['string', 'bool'], $introspector->getAllowedTypes('foo')); $this->assertSame(['bar', 'zab'], $introspector->getAllowedValues('foo'));