Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3748745
D2487.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D2487.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D2487: Skip tests incompatible with Windows OSes
Attached
Detach File
Event Timeline
Log In to Comment