Page MenuHomeDevCentral

D2487.diff
No OneTemporary

D2487.diff

diff --git a/tests/IO/FileTest.php b/tests/IO/FileTest.php
--- a/tests/IO/FileTest.php
+++ b/tests/IO/FileTest.php
@@ -3,6 +3,7 @@
namespace Keruald\OmniTools\Tests\IO;
use Keruald\OmniTools\IO\File;
+use Keruald\OmniTools\OS\CurrentOS;
use PHPUnit\Framework\TestCase;
class FileTest extends TestCase {
@@ -15,6 +16,10 @@
* @dataProvider provideFilesAndDirectories
*/
public function testGetDirectory (string $filename, string $expected) : void {
+ if (CurrentOS::isPureWindows()) {
+ $this->markTestSkipped("This test is intended for UNIX systems.");
+ }
+
$this->assertSame($expected, File::from($filename)->getDirectory());
}
diff --git a/tests/Reflection/CodeFileTest.php b/tests/Reflection/CodeFileTest.php
--- a/tests/Reflection/CodeFileTest.php
+++ b/tests/Reflection/CodeFileTest.php
@@ -3,6 +3,7 @@
namespace Keruald\OmniTools\Tests\Reflection;
+use Keruald\OmniTools\OS\CurrentOS;
use Keruald\OmniTools\OS\CurrentProcess;
use Keruald\OmniTools\Reflection\CodeFile;
use Keruald\OmniTools\Tests\WithData;
@@ -37,6 +38,10 @@
}
public function testCanBeIncludedWhenFileModeForbidsReading () : void {
+ if (CurrentOS::isPureWindows()) {
+ $this->markTestSkipped("This test is intended for UNIX systems.");
+ }
+
if (CurrentProcess::isPrivileged()) {
$this->markTestSkipped(
"This test requires non-root access to run properly."
@@ -62,6 +67,10 @@
}
public function testIsReadableWhenFileModeForbidsReading () : void {
+ if (CurrentOS::isPureWindows()) {
+ $this->markTestSkipped("This test is intended for UNIX systems.");
+ }
+
if (CurrentProcess::isPrivileged()) {
$this->markTestSkipped(
"This test requires non-root access to run properly."

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 10:30 (20 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2249201
Default Alt Text
D2487.diff (1 KB)

Event Timeline