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()
152
152
$ this ->assertStringContainsString ('All 0 YAML files contain valid syntax. ' , trim ($ tester ->getDisplay ()));
153
153
}
154
154
155
- public function testIncorrectLintConfig ()
155
+ public function testMissingLintConfig ()
156
156
{
157
157
$ 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 ]);
159
165
}
160
166
161
167
public function testCorrectLintConfig ()
You can’t perform that action at this time.
0 commit comments