diff --git a/src/Symfony/Component/Console/Tests/Command/TraceableCommandTest.php b/src/Symfony/Component/Console/Tests/Command/TraceableCommandTest.php index 2775ec7e9660b..1bf709f8bce0e 100644 --- a/src/Symfony/Component/Console/Tests/Command/TraceableCommandTest.php +++ b/src/Symfony/Component/Console/Tests/Command/TraceableCommandTest.php @@ -59,7 +59,8 @@ public function testRunIsNotOverriddenWithProfile() public function assertLoopOutputCorrectness(string $output) { - self::assertMatchesRegularExpression('~3/3\s+\[▓+]\s+100%~u', $output); + $completeChar = '\\' !== \DIRECTORY_SEPARATOR ? '▓' : '='; + self::assertMatchesRegularExpression('~3/3\s+\['.$completeChar.'+]\s+100%~u', $output); self::assertStringContainsString('Loop finished.', $output); self::assertEquals(3, substr_count($output, 'Hello world')); }