@@ -1368,7 +1368,6 @@ public function testNormalizerCanAccessOtherOptions()
1368
1368
$ this ->resolver ->setDefault ('norm ' , 'baz ' );
1369
1369
1370
1370
$ this ->resolver ->setNormalizer ('norm ' , function (Options $ options ) {
1371
- /** @var TestCase $test */
1372
1371
Assert::assertSame ('bar ' , $ options ['default ' ]);
1373
1372
1374
1373
return 'normalized ' ;
@@ -1386,8 +1385,7 @@ public function testNormalizerCanAccessLazyOptions()
1386
1385
$ this ->resolver ->setDefault ('norm ' , 'baz ' );
1387
1386
1388
1387
$ this ->resolver ->setNormalizer ('norm ' , function (Options $ options ) {
1389
- /** @var TestCase $test */
1390
- Assert::assertEquals ('bar ' , $ options ['lazy ' ]);
1388
+ Assert::assertSame ('bar ' , $ options ['lazy ' ]);
1391
1389
1392
1390
return 'normalized ' ;
1393
1391
});
@@ -2417,9 +2415,9 @@ public function testResolveOptionsDefinedByOptionConfigurator()
2417
2415
;
2418
2416
$ introspector = new OptionsResolverIntrospector ($ this ->resolver );
2419
2417
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 ' ));
2423
2421
$ this ->assertSame ('bar ' , $ introspector ->getDefault ('foo ' ));
2424
2422
$ this ->assertSame (['string ' , 'bool ' ], $ introspector ->getAllowedTypes ('foo ' ));
2425
2423
$ this ->assertSame (['bar ' , 'zab ' ], $ introspector ->getAllowedValues ('foo ' ));
0 commit comments