Skip to content

Commit 1d119bb

Browse files
Merge branch '4.4' into 5.1
* 4.4: Use createMock() and use import instead of FQCN
2 parents 65ace24 + 1052eb9 commit 1d119bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Cache/CacheTraitTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CacheTraitTest extends TestCase
2323
{
2424
public function testSave()
2525
{
26-
$item = $this->getMockBuilder(CacheItemInterface::class)->getMock();
26+
$item = $this->createMock(CacheItemInterface::class);
2727
$item->method('set')
2828
->willReturn($item);
2929
$item->method('isHit')
@@ -52,7 +52,7 @@ public function testSave()
5252

5353
public function testNoCallbackCallOnHit()
5454
{
55-
$item = $this->getMockBuilder(CacheItemInterface::class)->getMock();
55+
$item = $this->createMock(CacheItemInterface::class);
5656
$item->method('isHit')
5757
->willReturn(true);
5858

@@ -79,7 +79,7 @@ public function testNoCallbackCallOnHit()
7979

8080
public function testRecomputeOnBetaInf()
8181
{
82-
$item = $this->getMockBuilder(CacheItemInterface::class)->getMock();
82+
$item = $this->createMock(CacheItemInterface::class);
8383
$item->method('set')
8484
->willReturn($item);
8585
$item->method('isHit')

0 commit comments

Comments
 (0)