minor #33447 [DI] fix failure (nicolas-grekas)
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
-------
3b40cb19a2
[DI] fix failure
This commit is contained in:
commit
84fec703c8
@ -306,8 +306,11 @@ class YamlFileLoaderTest extends TestCase
|
||||
$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()
|
||||
|
Reference in New Issue
Block a user