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 6014d53 + 6216863 commit 058db3fCopy full SHA for 058db3f
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