Skip to content

Commit

Permalink
Fix: Skip test that doesn't work on Windows if running on Windows (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage committed May 23, 2023
1 parent ba1c116 commit c6b9804
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Bootstrap/FileBootstrapProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public function testInvalidContent()

public function testUnreadableFile()
{
if (strtolower(substr(PHP_OS, 0, 3)) === 'win') {
self::markTestSkipped("This test doesn't run correctly on Windows");
}
$file = $this->createTemporaryFile();
chmod($file, 0222);
$instance = new FileBootstrapProvider($file);
Expand Down

0 comments on commit c6b9804

Please sign in to comment.