Skip to content

Commit 5b4525a

Browse files
minor #61165 [Console] Windows Test Error - change completecar for windows for passing test (eltharin)
This PR was submitted for the 7.3 branch but it was squashed and merged into the 6.4 branch instead. Discussion ---------- [Console] Windows Test Error - change completecar for windows for passing test | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | License | MIT add test for correct complet task caracter in windows Commits ------- 997eda8 [Console] Windows Test Error - change completecar for windows for passing test
2 parents 74895de + 997eda8 commit 5b4525a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Console/Tests/Command/TraceableCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public function testRunIsNotOverriddenWithProfile()
5959

6060
public function assertLoopOutputCorrectness(string $output)
6161
{
62-
self::assertMatchesRegularExpression('~3/3\s+\[▓+]\s+100%~u', $output);
62+
$completeChar = '\\' !== \DIRECTORY_SEPARATOR ? '' : '=';
63+
self::assertMatchesRegularExpression('~3/3\s+\['.$completeChar.'+]\s+100%~u', $output);
6364
self::assertStringContainsString('Loop finished.', $output);
6465
self::assertEquals(3, substr_count($output, 'Hello world'));
6566
}

0 commit comments

Comments
 (0)