Skip to content

Commit d28e7e2

Browse files
Fix wrong boolean values
1 parent baee573 commit d28e7e2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Tests/OptionsResolverTest.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,6 @@ public function testNormalizerCanAccessOtherOptions()
13681368
$this->resolver->setDefault('norm', 'baz');
13691369

13701370
$this->resolver->setNormalizer('norm', function (Options $options) {
1371-
/** @var TestCase $test */
13721371
Assert::assertSame('bar', $options['default']);
13731372

13741373
return 'normalized';
@@ -1386,8 +1385,7 @@ public function testNormalizerCanAccessLazyOptions()
13861385
$this->resolver->setDefault('norm', 'baz');
13871386

13881387
$this->resolver->setNormalizer('norm', function (Options $options) {
1389-
/** @var TestCase $test */
1390-
Assert::assertEquals('bar', $options['lazy']);
1388+
Assert::assertSame('bar', $options['lazy']);
13911389

13921390
return 'normalized';
13931391
});
@@ -2417,9 +2415,9 @@ public function testResolveOptionsDefinedByOptionConfigurator()
24172415
;
24182416
$introspector = new OptionsResolverIntrospector($this->resolver);
24192417

2420-
$this->assertTrue(true, $this->resolver->isDefined('foo'));
2421-
$this->assertTrue(true, $this->resolver->isDeprecated('foo'));
2422-
$this->assertTrue(true, $this->resolver->hasDefault('foo'));
2418+
$this->assertTrue($this->resolver->isDefined('foo'));
2419+
$this->assertTrue($this->resolver->isDeprecated('foo'));
2420+
$this->assertTrue($this->resolver->hasDefault('foo'));
24232421
$this->assertSame('bar', $introspector->getDefault('foo'));
24242422
$this->assertSame(['string', 'bool'], $introspector->getAllowedTypes('foo'));
24252423
$this->assertSame(['bar', 'zab'], $introspector->getAllowedValues('foo'));

0 commit comments

Comments
 (0)