Skip to content

Commit

Permalink
Fix tests in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Nov 15, 2023
1 parent 25e9317 commit 76c3e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installer/Tests/InstallationResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 76c3e41

Please sign in to comment.