@@ -184,6 +184,10 @@ public function test_detele_file_on_dir(): void
184184
185185 public function test_get_permissions (): void
186186 {
187+ if (PHP_OS_FAMILY === 'Windows ' ) {
188+ $ this ->markTestSkipped ('Irrelevant on Windows. ' );
189+ }
190+
187191 $ file = $ this ->fixtures . '/file.txt ' ;
188192
189193 file_put_contents ($ file , '' );
@@ -219,6 +223,10 @@ public function test_ensure_directory_empty_on_file(): void
219223
220224 public function test_ensure_directory_empty_keeps_permissions (): void
221225 {
226+ if (PHP_OS_FAMILY === 'Windows ' ) {
227+ $ this ->markTestSkipped ('Irrelevant on Windows. ' );
228+ }
229+
222230 $ dir = $ this ->fixtures . '/tmp ' ;
223231
224232 mkdir ($ dir , 0o755 );
@@ -295,8 +303,11 @@ public function test_list_directory(): void
295303 $ files = Filesystem \list_directory ($ dir );
296304
297305 $ this ->assertCount (2 , $ files );
298- $ this ->assertContains (realpath ($ dir . '/file.txt ' ), $ files );
299- $ this ->assertContains (realpath ($ dir . '/sub ' ), $ files );
306+
307+ if (PHP_OS_FAMILY !== 'Windows ' ) {
308+ $ this ->assertContains (realpath ($ dir . '/file.txt ' ), $ files );
309+ $ this ->assertContains (realpath ($ dir . '/sub ' ), $ files );
310+ }
300311 }
301312
302313 public function test_read_symbolic_link (): void
@@ -320,7 +331,7 @@ public function test_get_directory(): void
320331
321332 $ directory = Filesystem \get_directory ($ file );
322333
323- $ this ->assertEquals (realpath ($ this ->fixtures ), $ directory );
334+ $ this ->assertEquals (realpath ($ this ->fixtures ), realpath ( $ directory) );
324335 }
325336
326337 public function test_copy (): void
@@ -360,6 +371,10 @@ public function test_copy_non_existing_file(): void
360371
361372 public function test_copy_non_readable_file (): void
362373 {
374+ if (PHP_OS_FAMILY === 'Windows ' ) {
375+ $ this ->markTestSkipped ('Irrelevant on Windows. ' );
376+ }
377+
363378 $ this ->expectException (NotReadableException::class);
364379
365380 $ source = $ this ->fixtures . '/file.txt ' ;
0 commit comments