'.\'\'.' => 'concatenation as a key',
'\'\'.' => 'concatenation from the start key',
'optimize concatenation' => 'string1%some_string%string2',
'optimize concatenation with empty string' => 'string1%empty_value%string2',
'optimize concatenation from the start' => '%empty_value%start',
'optimize concatenation at the end' => 'end%empty_value%',
'new line' => "string with \nnew line",
]);
$definition->
setPublic(true
);
$container =
new ContainerBuilder();
$container->
setResourceTracking(false
);
$container->
setDefinition('test',
$definition);
$container->
setParameter('empty_value', ''
);
$container->
setParameter('some_string', '-'
);
$container->
compile();
$dumper =
new PhpDumper($container);
$this->
assertStringEqualsFile(self::
$fixturesPath.'/php/services10.php',
$dumper->
dump(), '->dump() dumps an empty container as an empty PHP class'
);
} public function testDumpRelativeDir() {