public function LintCommandTest::testCustomTags in Lockr 7.3
File
- vendor/
symfony/ yaml/ Tests/ Command/ LintCommandTest.php, line 63
Class
- LintCommandTest
- Tests the YamlLintCommand.
Namespace
Symfony\Component\Yaml\Tests\CommandCode
public function testCustomTags() {
$yaml = <<<YAML
foo: !my_tag {foo: bar}
YAML;
$ret = $this
->createCommandTester()
->execute([
'filename' => $this
->createFile($yaml),
'--parse-tags' => true,
], [
'verbosity' => OutputInterface::VERBOSITY_VERBOSE,
'decorated' => false,
]);
$this
->assertSame(0, $ret, 'lint:yaml exits with code 0 in case of success');
}