$expected = <<<EOF
Or find all files in a bundle:
<info>php %command.full_name% @AcmeDemoBundle</info>
EOF;
$this->
assertStringContainsString($expected,
$command->
getHelp());
} public function testLintFilesFromBundleDirectory() { $tester =
$this->
createCommandTester($this->
getKernelAwareApplicationMock());
$tester->
execute( ['filename' => '@AppBundle/Resources'
],
['verbosity' => OutputInterface::VERBOSITY_VERBOSE, 'decorated' => false
] );
$tester->
assertCommandIsSuccessful('Returns 0 in case of success'
);
$this->
assertStringContainsString('[OK] All 0 XLIFF files contain valid syntax',
trim($tester->
getDisplay()));
} private function createCommandTester($application = null
): CommandTester
{