public function XmlDumperTest::testDumpAnonymousServices

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Dumper/XmlDumperTest.php, line 74

Class

XmlDumperTest

Namespace

Symfony\Component\DependencyInjection\Tests\Dumper

Code

public function testDumpAnonymousServices() {
  include self::$fixturesPath . '/containers/container11.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\">\n      <argument type=\"service\">\n        <service class=\"BarClass\">\n          <argument type=\"service\">\n            <service class=\"BazClass\"/>\n          </argument>\n        </service>\n      </argument>\n    </service>\n  </services>\n</container>\n", $dumper
    ->dump());
}