diff --git a/src/PendingCalls/TestCall.php b/src/PendingCalls/TestCall.php index 60b6fcf8..45669e9d 100644 --- a/src/PendingCalls/TestCall.php +++ b/src/PendingCalls/TestCall.php @@ -233,6 +233,30 @@ final class TestCall : $this; } + /** + * Skips the current test unless the given test is running on Windows. + */ + public function onlyOnWindows(): self + { + return $this->skipOnMac()->skipOnLinux(); + } + + /** + * Skips the current test unless the given test is running on Mac. + */ + public function onlyOnMac(): self + { + return $this->skipOnWindows()->skipOnLinux(); + } + + /** + * Skips the current test unless the given test is running on Linux. + */ + public function onlyOnLinux(): self + { + return $this->skipOnWindows()->skipOnMac(); + } + /** * Repeats the current test the given number of times. */