From da68ad973fbfc4e737382fbcb7d41424030a7221 Mon Sep 17 00:00:00 2001 From: Oleg Grigoriev Date: Sat, 14 Oct 2023 13:40:25 +0400 Subject: [PATCH] Fix tests to run outside of docker --- tests/RealPosixTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/RealPosixTest.php b/tests/RealPosixTest.php index 38c7194..e176aab 100644 --- a/tests/RealPosixTest.php +++ b/tests/RealPosixTest.php @@ -22,8 +22,8 @@ public function testAccess(): void { $tmp = $this->tmpDir(); $tmp->clear(); + $tmp->put('one.txt', ''); $fn = $tmp->getPath('one.txt'); - touch($fn); chmod($fn, 0644); $this->assertTrue($this->posix->access($fn, PosixConstants::R_OK)); $this->assertFalse($this->posix->access($fn, PosixConstants::X_OK));