File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ public function testReverse(): void
45
45
$ mockOne = $ this ->getMockBuilder (Provider::class)->getMock ();
46
46
$ mockOne ->expects ($ this ->once ())
47
47
->method ('reverseQuery ' )
48
- ->will ( $ this -> returnCallback (function () {
48
+ ->willReturnCallback (function () {
49
49
throw new \Exception ();
50
- })) ;
50
+ });
51
51
52
52
$ mockTwo = $ this ->getMockBuilder (Provider::class)->getMock ();
53
53
$ result = new AddressCollection (['foo ' => 'bar ' ]);
@@ -66,9 +66,9 @@ public function testGeocode(): void
66
66
$ mockOne = $ this ->getMockBuilder (Provider::class)->getMock ();
67
67
$ mockOne ->expects ($ this ->once ())
68
68
->method ('geocodeQuery ' )
69
- ->will ( $ this -> returnCallback (function () {
69
+ ->willReturnCallback (function () {
70
70
throw new \Exception ();
71
- })) ;
71
+ });
72
72
73
73
$ mockTwo = $ this ->getMockBuilder (Provider::class)->getMock ();
74
74
$ result = new AddressCollection (['foo ' => 'bar ' ]);
You can’t perform that action at this time.
0 commit comments