From 830794bbcb3c707e22bcbd65e38454eb91b8da13 Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Sun, 3 May 2015 22:04:07 +0100 Subject: [PATCH] Skip IMAP tests if credentials are unavailable --- tests/imap/abstracttest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/imap/abstracttest.php b/tests/imap/abstracttest.php index 109ef1559..99b6a3475 100644 --- a/tests/imap/abstracttest.php +++ b/tests/imap/abstracttest.php @@ -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' ); }