diff options
author | sgiehl <stefangiehl@gmail.com> | 2012-08-02 15:35:12 +0400 |
---|---|---|
committer | sgiehl <stefangiehl@gmail.com> | 2012-08-02 15:35:12 +0400 |
commit | d91c4732b35b34218a58bcf8a9b37208a1343dde (patch) | |
tree | 4b8112595331881cb692d3a6225b81128d9c62ee /tests/PHPUnit/Integration/TwoVisitors_TwoWebsites_DifferentDaysTest.php | |
parent | e3d009d13b49f3dedcf5f8bfa91545153fbc155d (diff) |
refs #3227 integration tests: skip whole test suite if an error occurs
while setup (atm bulk tracking doesn't work)
git-svn-id: http://dev.piwik.org/svn/trunk@6645 59fd770c-687e-43c8-a1e3-f5a4ff64c105
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()); + } } /** |