8000 Merge branch '5.2' into 5.3 · symfony/symfony@cf4f705 · GitHub
[go: up one dir, main page]

Skip to content

Commit cf4f705

Browse files
Merge branch '5.2' into 5.3
* 5.2: [ExpressionLanguage] Fix test case
2 parents 3590cb5 + ed71ab1 commit cf4f705

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/ExpressionLanguage/Tests/ExpressionLanguageTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,18 @@ public function testCachedParse()
4848
->expects($this->exactly(1))
4949
->method('set')
5050
->with($this->isInstanceOf(ParsedExpression::class))
51-
->willReturnCallback(function ($parsedExpression) use (&$savedParsedExpression) {
51+
->willReturnCallback(function ($parsedExpression) use (&$savedParsedExpression, $cacheItemMock) {
5252
$savedParsedExpression = $parsedExpression;
53+
54+
return $cacheItemMock;
5355
})
5456
;
5557

5658
$cacheMock
5759
->expects($this->exactly(1))
5860
->method('save')
5961
->with($cacheItemMock)
62+
->willReturn(true)
6063
;
6164

6265
$parsedExpression = $expressionLanguage->parse('1 + 1', []);

0 commit comments

Comments
 (0)
0