Skip to content

Commit 997eda8

Browse files
eltharinnicolas-grekas
authored andcommitted
[Console] Windows Test Error - change completecar for windows for passing test
1 parent 74895de commit 997eda8

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)