$this->
assertStringMatchesFormatFile(self::
$fixturesPath.'/php/services9_as_files.txt',
$dump);
} public function testDumpAsFilesWithTypedReference() { $container =
include self::
$fixturesPath.'/containers/container10.php';
$container->
getDefinition('foo'
)->
addTag('hot'
);
$container->
register('bar', 'stdClass'
);
$container->
register('closure', 'stdClass'
) ->
setProperty('closures',
[ new ServiceClosureArgument(new TypedReference('foo', \stdClass::
class,
$container::IGNORE_ON_UNINITIALIZED_REFERENCE
)),
]) ->
setPublic(true
);
$container->
compile();
$dumper =
new PhpDumper($container);
$dump =
print_r($dumper->
dump(['as_files' => true, 'file' => __DIR__, 'hot_path_tag' => 'hot', 'inline_factories' => false, 'inline_class_loader' => false
]), true
);
if ('\\' === \DIRECTORY_SEPARATOR
) { $dump =
str_replace("'.\\DIRECTORY_SEPARATOR.'", '/',
$dump);
} $this->
assertStringMatchesFormatFile(self::
$fixturesPath.'/php/services10_as_files.txt',
$dump);
}