Skip to content

Commit

Permalink
accomodate different cli behavior for passing string arguments on win…
Browse files Browse the repository at this point in the history
…dows
  • Loading branch information
ProjektGopher committed Sep 6, 2024
1 parent 8583203 commit f1dfa4a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/Feature/RunTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@
->assertExitCode(0);

expect(file_get_contents($tmp_file))
->toBe('.git/COMMIT_EDITMSG'.PHP_EOL);
->toBe((new Platform)->isNotWindows()
? '.git/COMMIT_EDITMSG'.PHP_EOL
: '".git/COMMIT_EDITMSG"'.PHP_EOL
);

unlink($tmp_file);
});
Expand Down Expand Up @@ -137,7 +140,10 @@
->assertExitCode(0);

expect(file_get_contents($tmp_file))
->toBe(PHP_EOL);
->toBe((new Platform)->isNotWindows()
? PHP_EOL
: '""'.PHP_EOL
);

unlink($tmp_file);
});

0 comments on commit f1dfa4a

Please sign in to comment.