We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b76da5b + ab01c93 commit 4d4b394Copy full SHA for 4d4b394
Tests/ExpressionLanguageTest.php
@@ -48,15 +48,18 @@ public function testCachedParse()
48
->expects($this->exactly(1))
49
->method('set')
50
->with($this->isInstanceOf(ParsedExpression::class))
51
- ->willReturnCallback(function ($parsedExpression) use (&$savedParsedExpression) {
+ ->willReturnCallback(function ($parsedExpression) use (&$savedParsedExpression, $cacheItemMock) {
52
$savedParsedExpression = $parsedExpression;
53
+
54
+ return $cacheItemMock;
55
})
56
;
57
58
$cacheMock
59
60
->method('save')
61
->with($cacheItemMock)
62
+ ->willReturn(true)
63
64
65
$parsedExpression = $expressionLanguage->parse('1 + 1', []);
0 commit comments