Merge pull request #576 from Xenopathic/prevent-ci-error

Skip IMAP tests if credentials are unavailable
This commit is contained in:
Thomas Müller 2015-05-04 09:08:32 +02:00
Родитель a7b46ad7a3 830794bbcb
Коммит 7806e931c5
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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'
);
}