public function XmlDumperTest::testDumpEntities in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Tests/Dumper/XmlDumperTest.php \Symfony\Component\DependencyInjection\Tests\Dumper\XmlDumperTest::testDumpEntities()
File
- vendor/
symfony/ dependency-injection/ Tests/ Dumper/ XmlDumperTest.php, line 107
Class
Namespace
Symfony\Component\DependencyInjection\Tests\DumperCode
public function testDumpEntities() {
$container = (include self::$fixturesPath . '/containers/container12.php');
$dumper = new XmlDumper($container);
$this
->assertEquals("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<container xmlns=\"http://symfony.com/schema/dic/services\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd\">\n <services>\n <service id=\"foo\" class=\"FooClass\\Foo\">\n <tag name=\"foo"bar\\bar\" foo=\"foo"barřž€\"/>\n <argument>foo<>&bar</argument>\n </service>\n </services>\n</container>\n", $dumper
->dump());
}