Skip to content

Commit

Permalink
Extend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Jan 17, 2022
1 parent a489d75 commit e91ab40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Smoke/PharTest.php
Expand Up @@ -56,7 +56,8 @@ public static function setUpBeforeClass(): void
public function testVersion(): void
{
static::assertMatchesRegularExpression(
sprintf("/^.* %s(?: %s)? by .*\nPHP runtime: \\d\\.\\d+\\..*\$/", Application::VERSION, Application::VERSION_CODENAME),
// @phpstan-ignore-next-line to avoid `Negated boolean expression is always false.`
sprintf("/^PHP CS Fixer (?<version>%s)(?<git_sha> \\([a-z0-9]+\\))?(?<codename> %s){%d}(?<by> by .*)\nPHP runtime: (?<php_version>\\d\\.\\d+\\..*)$/", Application::VERSION, Application::VERSION_CODENAME, (bool) Application::VERSION_CODENAME),
self::executePharCommand('--version')->getOutput()
);
}
Expand Down

0 comments on commit e91ab40

Please sign in to comment.