Skip to content

Commit 478fa16

Browse files
dependabot[bot]neilime
authored andcommitted
build(deps-dev): update phpunit/phpunit requirement
Updates the requirements on [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) to permit the latest version. - [Release notes](https://github.com/sebastianbergmann/phpunit/releases) - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/main/ChangeLog-9.5.md) - [Commits](sebastianbergmann/phpunit@9.5.25...9.5.26) --- updated-dependencies: - dependency-name: phpunit/phpunit dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent 08af6e1 commit 478fa16

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

composer.json

+1-1
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

+13
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)