Skip to content

Commit 505f470

Browse files
committed
Remove spaces between arguments
Blank spaces between the arguments of the GithubActionReporter messages make them appear always on line 1.
1 parent 23cdfa5 commit 505f470

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Command/LintCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function testLintIncorrectFileWithGithubFormat()
8585
}
8686

8787
self::assertEquals(1, $tester->getStatusCode(), 'Returns 1 in case of error');
88-
self::assertStringMatchesFormat('%A::error file=%s, line=2, col=0::Unable to parse at line 2 (near "bar")%A', trim($tester->getDisplay()));
88+
self::assertStringMatchesFormat('%A::error file=%s,line=2,col=0::Unable to parse at line 2 (near "bar")%A', trim($tester->getDisplay()));
8989
}
9090

9191
public function testLintAutodetectsGithubActionEnvironment()
@@ -109,7 +109,7 @@ public function testLintAutodetectsGithubActionEnvironment()
109109

110110
$tester->execute(['filename' => $filename], ['decorated' => false]);
111111

112-
self::assertStringMatchesFormat('%A::error file=%s, line=2, col=0::Unable to parse at line 2 (near "bar")%A', trim($tester->getDisplay()));
112+
self::assertStringMatchesFormat('%A::error file=%s,line=2,col=0::Unable to parse at line 2 (near "bar")%A', trim($tester->getDisplay()));
113113
} finally {
114114
putenv('GITHUB_ACTIONS'.($prev ? "=$prev" : ''));
115115
}

0 commit comments

Comments
 (0)