Skip to content

Commit

Permalink
Merge branch '2.8' into 3.3
Browse files Browse the repository at this point in the history
* 2.8:
  Refactoring tests.
  • Loading branch information
nicolas-grekas committed Dec 12, 2017
2 parents 623d9c2 + 7be8483 commit efcccb1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Tests/OptionsResolverTest.php
Expand Up @@ -1419,12 +1419,12 @@ public function testArrayAccess()
});

$this->resolver->setDefault('lazy2', function (Options $options) {
Assert::assertTrue(isset($options['default1']));
Assert::assertTrue(isset($options['default2']));
Assert::assertTrue(isset($options['required']));
Assert::assertTrue(isset($options['lazy1']));
Assert::assertTrue(isset($options['lazy2']));
Assert::assertFalse(isset($options['defined']));
Assert::assertArrayHasKey('default1', $options);
Assert::assertArrayHasKey('default2', $options);
Assert::assertArrayHasKey('required', $options);
Assert::assertArrayHasKey('lazy1', $options);
Assert::assertArrayHasKey('lazy2', $options);
Assert::assertArrayNotHasKey('defined', $options);

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

0 comments on commit efcccb1

Please sign in to comment.