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
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PHPUnit/Framework/TestCase/SystemTestCase.php')
-rw-r--r--tests/PHPUnit/Framework/TestCase/SystemTestCase.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/PHPUnit/Framework/TestCase/SystemTestCase.php b/tests/PHPUnit/Framework/TestCase/SystemTestCase.php
index 8a3f929188..2fd52b615f 100644
--- a/tests/PHPUnit/Framework/TestCase/SystemTestCase.php
+++ b/tests/PHPUnit/Framework/TestCase/SystemTestCase.php
@@ -840,6 +840,15 @@ abstract class SystemTestCase extends TestCase
{
return array();
}
+
+ public function hasDependencies(): bool
+ {
+ if (method_exists($this, 'requires')) {
+ return count($this->requires()) > 0;
+ }
+
+ return parent::hasDependencies();
+ }
}
SystemTestCase::$fixture = new \Piwik\Tests\Framework\Fixture();