PopBeforeSmtpTest: skip on Windows

The shell commands used in the test are not available on Windows, so these tests would always fail, so we may as well skip them.
This commit is contained in:
jrfnl 2021-06-28 10:39:11 +02:00
parent c717120668
commit 39426ae930
1 changed files with 10 additions and 0 deletions

View File

@ -47,6 +47,16 @@ final class PopBeforeSmtpTest extends TestCase
}
}
/**
* Run before each test is started.
*/
protected function set_up()
{
if (DIRECTORY_SEPARATOR === '\\') {
$this->markTestSkipped('This test needs a non-Windows OS to run');
}
}
/**
* Run after each test is completed.
*/