Merge pull request #576 from Xenopathic/prevent-ci-error
Skip IMAP tests if credentials are unavailable
This commit is contained in:
Коммит
7806e931c5
|
@ -19,13 +19,13 @@ abstract class AbstractTest extends \PHPUnit_Framework_TestCase {
|
|||
|
||||
public static function setUpBeforeClass() {
|
||||
if (false === \getenv('EMAIL_USER')) {
|
||||
throw new \RuntimeException(
|
||||
throw new \PHPUnit_Framework_SkippedTestError(
|
||||
'Please set environment variable EMAIL_USER before running functional tests'
|
||||
);
|
||||
}
|
||||
|
||||
if (false === \getenv('EMAIL_PASSWORD')) {
|
||||
throw new \RuntimeException(
|
||||
throw new \PHPUnit_Framework_SkippedTestError(
|
||||
'Please set environment variable EMAIL_PASSWORD before running functional tests'
|
||||
);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче