Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf506d77

Browse files
committed
Add test case
1 parentb3bfdf9 commitf506d77

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" ?>
2+
<containerxmlns="http://symfony.com/schema/dic/services"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd">
5+
6+
<services>
7+
<serviceid="foo"class="BarClass">
8+
<tagname="name_attribute">tag_name</tag>
9+
</service>
10+
</services>
11+
</container>

‎src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,4 +1194,14 @@ public static function dataForBindingsAndInnerCollections()
11941194
['bar8',newIteratorArgument(['item.1','item.2', ['item.3.1','item.3.2']])],
11951195
];
11961196
}
1197+
1198+
publicfunctiontestTagNameAttribute()
1199+
{
1200+
$container =newContainerBuilder();
1201+
$loader =newXmlFileLoader($container,newFileLocator(self::$fixturesPath.'/xml'));
1202+
$loader->load('tag_with_name_attribute.xml');
1203+
1204+
$definition =$container->getDefinition('foo');
1205+
$this->assertSame(['name' =>'name_attribute'],$definition->getTag('tag_name'));
1206+
}
11971207
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp