File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/Symfony/Component/Yaml/Tests/Command Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -152,10 +152,16 @@ public function testLintWithExclude()
152152 $ this ->assertStringContainsString ('All 0 YAML files contain valid syntax. ' , trim ($ tester ->getDisplay ()));
153153 }
154154
155- public function testIncorrectLintConfig ()
155+ public function testMissingLintConfig ()
156156 {
157157 $ this ->expectException ('RuntimeException ' );
158- $ this ->createCommandTester ()->execute (['filename ' => '.yamllint.yml ' ], ['decorated ' => false ]);
158+ $ this ->createCommandTester ()->execute (['--config ' => 'missing.yml ' ], ['decorated ' => false ]);
159+ }
160+
161+ public function testInvalidLintConfig ()
162+ {
163+ $ this ->expectException ('RuntimeException ' );
164+ $ this ->createCommandTester ()->execute (['--config ' => $ this ->createFile ('foo: bar ' )], ['decorated ' => false ]);
159165 }
160166
161167 public function testCorrectLintConfig ()
You can’t perform that action at this time.
0 commit comments