Skip to content

Commit 95a16ad

Browse files
committed
Merge branch '4.0'
* 4.0: fixed wrong merge Tweak message to be Flex friendly [Routing] fixed tests Fixing wrong class_exists on interface Preserve percent-encoding in URLs when performing redirects in the UrlMatcher removed FIXME [Console] Fix a bug when passing a letter that could be an alias add missing validation options to XSD file Take advantage of AnnotationRegistry::registerUniqueLoader [DI] Optimize Container::get() for perf fix merge Fix tests Refactoring tests.
2 parents e4e029d + 75fdda3 commit 95a16ad

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/OptionsResolverTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,12 +1504,12 @@ public function testArrayAccess()
15041504
});
15051505

15061506
$this->resolver->setDefault('lazy2', function (Options $options) {
1507-
Assert::assertTrue(isset($options['default1']));
1508-
Assert::assertTrue(isset($options['default2']));
1509-
Assert::assertTrue(isset($options['required']));
1510-
Assert::assertTrue(isset($options['lazy1']));
1511-
Assert::assertTrue(isset($options['lazy2']));
1512-
Assert::assertFalse(isset($options['defined']));
1507+
Assert::assertArrayHasKey('default1', $options);
1508+
Assert::assertArrayHasKey('default2', $options);
1509+
Assert::assertArrayHasKey('required', $options);
1510+
Assert::assertArrayHasKey('lazy1', $options);
1511+
Assert::assertArrayHasKey('lazy2', $options);
1512+
Assert::assertArrayNotHasKey('defined', $options);
15131513

15141514
Assert::assertSame(0, $options['default1']);
15151515
Assert::assertSame(42, $options['default2']);

0 commit comments

Comments
 (0)