$kernel ->
expects($this->
any()) ->
method('getBundles'
) ->
willReturn([]);
$container =
new Container();
$kernel ->
expects($this->
any()) ->
method('getContainer'
) ->
willReturn($container);
$command =
new TranslationUpdateCommand($writer,
$loader,
$extractor, 'en',
$this->translationDir.'/translations',
$this->translationDir.'/templates',
$transPaths,
$codePaths);
$application =
new Application($kernel);
$application->
add($command);
return new CommandTester($application->
find('translation:extract'
));
} private function getBundle($path) { $bundle =
$this->
createMock(BundleInterface::
class);
$bundle