mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
feat: skips on windows
This commit is contained in:
@ -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".
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user