You are here

public function LintCommandTest::testCustomTagsError in Lockr 7.3

File

vendor/symfony/yaml/Tests/Command/LintCommandTest.php, line 72

Class

LintCommandTest
Tests the YamlLintCommand.

Namespace

Symfony\Component\Yaml\Tests\Command

Code

public function testCustomTagsError() {
  $yaml = <<<YAML
foo: !my_tag {foo: bar}
YAML;
  $ret = $this
    ->createCommandTester()
    ->execute([
    'filename' => $this
      ->createFile($yaml),
  ], [
    'verbosity' => OutputInterface::VERBOSITY_VERBOSE,
    'decorated' => false,
  ]);
  $this
    ->assertSame(1, $ret, 'lint:yaml exits with code 1 in case of error');
}