$this->
expectException(\RuntimeException::
class);
$tester =
$this->
createCommandTester();
$filename =
$this->
createFile(''
);
unlink($filename);
$tester->
execute(['filename' =>
$filename],
['decorated' => false
]);
} public function testGetHelp() { $command =
new YamlLintCommand();
$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() {