@@ -36,18 +36,18 @@ public function testCachedParse()
36
36
$ cacheItemMock
37
37
->expects ($ this ->exactly (2 ))
38
38
->method ('get ' )
39
- ->will ( $ this -> returnCallback (function () use (&$ savedParsedExpression ) {
39
+ ->willReturnCallback (function () use (&$ savedParsedExpression ) {
40
40
return $ savedParsedExpression ;
41
- }))
41
+ })
42
42
;
43
43
44
44
$ cacheItemMock
45
45
->expects ($ this ->exactly (1 ))
46
46
->method ('set ' )
47
47
->with ($ this ->isInstanceOf (ParsedExpression::class))
48
- ->will ( $ this -> returnCallback (function ($ parsedExpression ) use (&$ savedParsedExpression ) {
48
+ ->willReturnCallback (function ($ parsedExpression ) use (&$ savedParsedExpression ) {
49
49
$ savedParsedExpression = $ parsedExpression ;
50
- }))
50
+ })
51
51
;
52
52
53
53
$ cacheMock
@@ -85,9 +85,9 @@ public function testCachedParseWithDeprecatedParserCacheInterface()
85
85
->expects ($ this ->exactly (1 ))
86
86
->method ('save ' )
87
87
->with ('1%20%2B%201%2F%2F ' , $ this ->isInstanceOf (ParsedExpression::class))
88
- ->will ( $ this -> returnCallback (function ($ key , $ expression ) use (&$ savedParsedExpression ) {
88
+ ->willReturnCallback (function ($ key , $ expression ) use (&$ savedParsedExpression ) {
89
89
$ savedParsedExpression = $ expression ;
90
- }))
90
+ })
91
91
;
92
92
93
93
$ parsedExpression = $ expressionLanguage ->parse ('1 + 1 ' , []);
@@ -213,18 +213,18 @@ public function testCachingWithDifferentNamesOrder()
213
213
$ cacheItemMock
214
214
->expects ($ this ->exactly (2 ))
215
215
->method ('get ' )
216
- ->will ( $ this -> returnCallback (function () use (&$ savedParsedExpression ) {
216
+ ->willReturnCallback (function () use (&$ savedParsedExpression ) {
217
217
return $ savedParsedExpression ;
218
- }))
218
+ })
219
219
;
220
220
221
221
$ cacheItemMock
222
222
->expects ($ this ->exactly (1 ))
223
223
->method ('set ' )
224
224
->with ($ this ->isInstanceOf (ParsedExpression::class))
225
- ->will ( $ this -> returnCallback (function ($ parsedExpression ) use (&$ savedParsedExpression ) {
225
+ ->willReturnCallback (function ($ parsedExpression ) use (&$ savedParsedExpression ) {
226
226
$ savedParsedExpression = $ parsedExpression ;
227
- }))
227
+ })
228
228
;
229
229
230
230
$ cacheMock
0 commit comments