File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 3131 "phpstan/extension-installer" : " ^1.1" ,
3232 "phpstan/phpstan" : " ^0.12" ,
3333 "phpstan/phpstan-phpunit" : " ^0.12" ,
34- "phpunit/phpunit" : " ^9.5.25 " ,
34+ "phpunit/phpunit" : " ^9.5.26 " ,
3535 "slam/phpstan-laminas-framework" : " ^0.12" ,
3636 "squizlabs/php_codesniffer" : " ^3.7"
3737 },
Original file line number Diff line number Diff line change @@ -93,4 +93,17 @@ public function testRunWithOptionsMustBeUsedByTheLinter()
9393 '.test { display: block; } '
9494 ]));
9595 }
96+
97+ public function testRunWithInvalidOptionsFormatShouldReturnAnError ()
98+ {
99+ $ this ->expectOutputString (
100+ "\033[31m/!\ Error: Unable to parse option argument: Syntax error \033[0m " . PHP_EOL .
101+ PHP_EOL
102+ );
103+ $ this ->assertEquals (1 , $ this ->cli ->run ([
104+ 'php-css-lint ' ,
105+ '--options={ "allowedIndentationChars": } ' ,
106+ '.test { display: block; } '
107+ ]));
108+ }
96109}
You can’t perform that action at this time.
0 commit comments