diff options
Diffstat (limited to 'tests/PHPUnit/Integration/TwoVisitors_TwoWebsites_DifferentDaysTest.php')
-rwxr-xr-x | tests/PHPUnit/Integration/TwoVisitors_TwoWebsites_DifferentDaysTest.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/PHPUnit/Integration/TwoVisitors_TwoWebsites_DifferentDaysTest.php b/tests/PHPUnit/Integration/TwoVisitors_TwoWebsites_DifferentDaysTest.php index 4cb2ed162e..e1e04475ee 100755 --- a/tests/PHPUnit/Integration/TwoVisitors_TwoWebsites_DifferentDaysTest.php +++ b/tests/PHPUnit/Integration/TwoVisitors_TwoWebsites_DifferentDaysTest.php @@ -28,8 +28,13 @@ class Test_Piwik_Integration_TwoVisitors_TwoWebsites_DifferentDays extends Integ public static function setUpBeforeClass() { parent::setUpBeforeClass(); - self::setUpWebsitesAndGoals(); - self::trackVisits(); + try { + self::setUpWebsitesAndGoals(); + self::trackVisits(); + } catch(Exception $e) { + // Skip whole test suite if an error occurs while setup + throw new PHPUnit_Framework_SkippedTestSuiteError($e->getMessage()); + } } /** |