public static function provideDefaultClasses() { yield [FooClassWithDefaultArrayAttribute::
class, 'services_with_default_array.xml'
];
yield [FooClassWithDefaultObjectAttribute::
class, 'services_with_default_object.xml'
];
yield [FooClassWithDefaultEnumAttribute::
class, 'services_with_default_enumeration.xml'
];
} public function testDumpServiceWithAbstractArgument() { $container =
new ContainerBuilder();
$container->
register(FooWithAbstractArgument::
class, FooWithAbstractArgument::
class) ->
setArgument('$baz',
new AbstractArgument('should be defined by Pass'
)) ->
setArgument('$bar', 'test'
);
$dumper =
new XmlDumper($container);
$this->
assertStringEqualsFile(self::
$fixturesPath.'/xml/services_with_abstract_argument.xml',
$dumper->
dump());
} public function testDumpNonScalarTags() { $container =
include self::
$fixturesPath.'/containers/container_non_scalar_tags.php';
$dumper =
new XmlDumper($container);