Skip to content

Commit 0243ebd

Browse files
Merge branch '4.2' into 4.3
* 4.2: Use willReturn() instead of will(returnValue()).
2 parents 94f1b24 + ea23981 commit 0243ebd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Tests/ExpressionLanguageTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ public function testCachedParse()
3636
$cacheItemMock
3737
->expects($this->exactly(2))
3838
->method('get')
39-
->will($this->returnCallback(function () use (&$savedParsedExpression) {
39+
->willReturnCallback(function () use (&$savedParsedExpression) {
4040
return $savedParsedExpression;
41-
}))
41+
})
4242
;
4343

4444
$cacheItemMock
4545
->expects($this->exactly(1))
4646
->method('set')
4747
->with($this->isInstanceOf(ParsedExpression::class))
48-
->will($this->returnCallback(function ($parsedExpression) use (&$savedParsedExpression) {
48+
->willReturnCallback(function ($parsedExpression) use (&$savedParsedExpression) {
4949
$savedParsedExpression = $parsedExpression;
50-
}))
50+
})
5151
;
5252

5353
$cacheMock
@@ -172,18 +172,18 @@ public function testCachingWithDifferentNamesOrder()
172172
$cacheItemMock
173173
->expects($this->exactly(2))
174174
->method('get')
175-
->will($this->returnCallback(function () use (&$savedParsedExpression) {
175+
->willReturnCallback(function () use (&$savedParsedExpression) {
176176
return $savedParsedExpression;
177-
}))
177+
})
178178
;
179179

180180
$cacheItemMock
181181
->expects($this->exactly(1))
182182
->method('set')
183183
->with($this->isInstanceOf(ParsedExpression::class))
184-
->will($this->returnCallback(function ($parsedExpression) use (&$savedParsedExpression) {
184+
->willReturnCallback(function ($parsedExpression) use (&$savedParsedExpression) {
185185
$savedParsedExpression = $parsedExpression;
186-
}))
186+
})
187187
;
188188

189189
$cacheMock

0 commit comments

Comments
 (0)