feat: skips on windows

This commit is contained in:
Nuno Maduro
2023-03-31 22:20:48 +01:00
parent 23c8adf497
commit 49ddcbd66b
8 changed files with 21 additions and 10 deletions

View File

@ -172,6 +172,17 @@ final class TestCall
return $this;
}
/**
* Skips the current test if the given test is running on Windows.
*/
public function skipOnWindows(): self
{
return $this->skip(
PHP_OS_FAMILY === 'Windows',
'This test is skipped on Windows.',
);
}
/**
* Sets the test as "todo".
*/