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/Integration/SegmentTest.php')
-rw-r--r--tests/PHPUnit/Integration/SegmentTest.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/PHPUnit/Integration/SegmentTest.php b/tests/PHPUnit/Integration/SegmentTest.php
index 9f626e7969..4398a3e982 100644
--- a/tests/PHPUnit/Integration/SegmentTest.php
+++ b/tests/PHPUnit/Integration/SegmentTest.php
@@ -1454,8 +1454,11 @@ class SegmentTest extends IntegrationTestCase
{
$self = $this;
- $cacheProxy = $this->getMock('Piwik\Cache\Lazy', array('fetch', 'contains', 'save', 'delete', 'flushAll'),
- array(), '', $callOriginalConstructor = false);
+ $cacheProxy = $this->getMockBuilder('Piwik\Cache\Lazy')
+ ->setMethods(array('fetch', 'contains', 'save', 'delete', 'flushAll'))
+ ->disableOriginalConstructor()
+ ->getMock();
+
$cacheProxy->expects($this->any())->method('fetch')->willReturnCallback(function ($id) {
$realCache = StaticContainer::get('Piwik\Cache\Lazy');
return $realCache->fetch($id);