File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 31
31
"phpstan/extension-installer" : " ^1.1" ,
32
32
"phpstan/phpstan" : " ^0.12" ,
33
33
"phpstan/phpstan-phpunit" : " ^0.12" ,
34
- "phpunit/phpunit" : " ^9.5.25 " ,
34
+ "phpunit/phpunit" : " ^9.5.26 " ,
35
35
"slam/phpstan-laminas-framework" : " ^0.12" ,
36
36
"squizlabs/php_codesniffer" : " ^3.7"
37
37
},
Original file line number Diff line number Diff line change @@ -93,4 +93,17 @@ public function testRunWithOptionsMustBeUsedByTheLinter()
93
93
'.test { display: block; } '
94
94
]));
95
95
}
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
+ }
96
109
}
You can’t perform that action at this time.
0 commit comments