Skip to content

Commit b76da5b

Browse files
Merge branch '5.3' into 5.4
* 5.3: [Cache] backport type fixes [Cache] Remove MemcachedTrait
2 parents a504075 + 058db3f commit b76da5b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tests/ExpressionLanguageTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,18 @@ public function testCachingWithDifferentNamesOrder()
182182
->expects($this->exactly(1))
183183
->method('set')
184184
->with($this->isInstanceOf(ParsedExpression::class))
185-
->willReturnCallback(function ($parsedExpression) use (&$savedParsedExpression) {
185+
->willReturnCallback(function ($parsedExpression) use (&$savedParsedExpression, $cacheItemMock) {
186186
$savedParsedExpression = $parsedExpression;
187+
188+
return $cacheItemMock;
187189
})
188190
;
189191

190192
$cacheMock
191193
->expects($this->exactly(1))
192194
->method('save')
193195
->with($cacheItemMock)
196+
->willReturn(true)
194197
;
195198

196199
$expression = 'a + b';

0 commit comments

Comments
 (0)