File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -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
@@ -172,18 +172,18 @@ public function testCachingWithDifferentNamesOrder()
172
172
$ cacheItemMock
173
173
->expects ($ this ->exactly (2 ))
174
174
->method ('get ' )
175
- ->will ( $ this -> returnCallback (function () use (&$ savedParsedExpression ) {
175
+ ->willReturnCallback (function () use (&$ savedParsedExpression ) {
176
176
return $ savedParsedExpression ;
177
- }))
177
+ })
178
178
;
179
179
180
180
$ cacheItemMock
181
181
->expects ($ this ->exactly (1 ))
182
182
->method ('set ' )
183
183
->with ($ this ->isInstanceOf (ParsedExpression::class))
184
- ->will ( $ this -> returnCallback (function ($ parsedExpression ) use (&$ savedParsedExpression ) {
184
+ ->willReturnCallback (function ($ parsedExpression ) use (&$ savedParsedExpression ) {
185
185
$ savedParsedExpression = $ parsedExpression ;
186
- }))
186
+ })
187
187
;
188
188
189
189
$ cacheMock
You can’t perform that action at this time.
0 commit comments