From 997eda8b313777bf6b1a1f2d261eb4642ecddf52 Mon Sep 17 00:00:00 2001 From: eltharin Date: Sun, 20 Jul 2025 13:48:03 +0200 Subject: [PATCH] [Console] Windows Test Error - change completecar for windows for passing test --- .../Component/Console/Tests/Command/TraceableCommandTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')); }