Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2014-12-18 02:22:12 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-12-18 02:22:12 +0300
commit258584ff790312d2eab8fd30bc88c779c99a5ed1 (patch)
tree628cc6a7bf8bb1104b187d35a43ffa182e8a188f /tests
parent0b8c00b6e8baa12ad09069e641a9ff7da3f6288f (diff)
Skip integration tests if they are not supported on this OS
Diffstat (limited to 'tests')
-rw-r--r--tests/PHPUnit/Integration/CronArchive/SharedSiteIdsTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/PHPUnit/Integration/CronArchive/SharedSiteIdsTest.php b/tests/PHPUnit/Integration/CronArchive/SharedSiteIdsTest.php
index 6e3959ceda..8ad12f8b8b 100644
--- a/tests/PHPUnit/Integration/CronArchive/SharedSiteIdsTest.php
+++ b/tests/PHPUnit/Integration/CronArchive/SharedSiteIdsTest.php
@@ -26,11 +26,20 @@ class SharedSiteIdsTest extends IntegrationTestCase
{
parent::setUp();
+ if (! SharedSiteIds::isSupported()) {
+ $this->markTestSkipped('Not supported on this platform');
+ return;
+ }
+
$this->sharedSiteIds = new SharedSiteIds(array(1,2,5,9));
}
public function tearDown()
{
+ if (! SharedSiteIds::isSupported()) {
+ return;
+ }
+
$siteIdsToCleanup = new SharedSiteIds(array());
$siteIdsToCleanup->setSiteIdsToArchive(array());