Skip to content

Commit

Permalink
minor #33447 [DI] fix failure (nicolas-grekas)
Browse files Browse the repository at this point in the history
This PR was merged into the 4.3 branch.

Discussion
----------

[DI] fix failure

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

3b40cb1 [DI] fix failure
  • Loading branch information
nicolas-grekas committed Sep 3, 2019
2 parents c0f4037 + 3b40cb1 commit 84fec70
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -306,8 +306,11 @@ public function testTaggedArgumentsWithIndex()
$taggedIterator = new TaggedIteratorArgument('foo', 'barfoo', 'foobar', true);
$this->assertEquals(new ServiceLocatorArgument($taggedIterator), $container->getDefinition('foo_service_tagged_locator')->getArgument(0));

$taggedIterator = new TaggedIteratorArgument('foo', null, null, true);
$this->assertEquals(new ServiceLocatorArgument($taggedIterator), $container->getDefinition('bar_service_tagged_locator')->getArgument(0));
if (is_subclass_of('Symfony\Component\Yaml\Exception\ExceptionInterface', 'Throwable')) {
// this test is not compatible with Yaml v3
$taggedIterator = new TaggedIteratorArgument('foo', null, null, true);
$this->assertEquals(new ServiceLocatorArgument($taggedIterator), $container->getDefinition('bar_service_tagged_locator')->getArgument(0));
}
}

public function testNameOnlyTagsAreAllowedAsString()
Expand Down

0 comments on commit 84fec70

Please sign in to comment.