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 a504075 + 058db3f commit b76da5bCopy full SHA for b76da5b
Tests/ExpressionLanguageTest.php
@@ -182,15 +182,18 @@ public function testCachingWithDifferentNamesOrder()
182
->expects($this->exactly(1))
183
->method('set')
184
->with($this->isInstanceOf(ParsedExpression::class))
185
- ->willReturnCallback(function ($parsedExpression) use (&$savedParsedExpression) {
+ ->willReturnCallback(function ($parsedExpression) use (&$savedParsedExpression, $cacheItemMock) {
186
$savedParsedExpression = $parsedExpression;
187
+
188
+ return $cacheItemMock;
189
})
190
;
191
192
$cacheMock
193
194
->method('save')
195
->with($cacheItemMock)
196
+ ->willReturn(true)
197
198
199
$expression = 'a + b';
0 commit comments