Skip to content

Commit 94f04f0

Browse files
authored
Merge branch 'main' into dependabot/github_actions/peaceiris/actions-gh-pages-3.9.0
2 parents 03bc5c9 + c06d64a commit 94f04f0

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
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
},

tests/TestSuite/CliTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)