8000
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 7b3ce51 + 4541189 commit ed71ab1Copy full SHA for ed71ab1
src/Symfony/Component/ExpressionLanguage/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