From 37d02f0f0885f3217b081dd6bce57bffb968a04e Mon Sep 17 00:00:00 2001 From: Doug Wright Date: Mon, 29 Jun 2020 14:28:05 +0200 Subject: [PATCH] Fix: Skip test on Windows --- tests/unit/Framework/AssertTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/Framework/AssertTest.php b/tests/unit/Framework/AssertTest.php index 314d52b7b30..23cbc6aec40 100644 --- a/tests/unit/Framework/AssertTest.php +++ b/tests/unit/Framework/AssertTest.php @@ -646,6 +646,10 @@ public function testAssertFileIsReadable(): void public function testAssertFileIsNotReadable(): void { + if (\PHP_OS_FAMILY === 'Windows') { + self::markTestSkipped('Cannot test this behaviour on Windows'); + } + $tempFile = \tempnam( \sys_get_temp_dir(), 'unreadable'