From 76c3e419cc1d689e69e34e33f42cc03402c506a9 Mon Sep 17 00:00:00 2001 From: Maxim Smakouz Date: Wed, 15 Nov 2023 14:40:17 +0200 Subject: [PATCH] Fix tests in Windows --- installer/Tests/InstallationResult.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/Tests/InstallationResult.php b/installer/Tests/InstallationResult.php index 51740ca..4955ccf 100644 --- a/installer/Tests/InstallationResult.php +++ b/installer/Tests/InstallationResult.php @@ -337,7 +337,7 @@ public function assertCopied(string $path, string $destination): self { foreach ($this->events as $event) { if ($event instanceof CopyEvent) { - if (\str_ends_with($event->getFullSource(), $path)) { + if (\str_ends_with(\str_replace('\\', '/', $event->getFullSource()), \str_replace('\\', '/', $path))) { if (\str_ends_with($event->getFullDestination(), $destination)) { Assert::assertTrue(true);