diff --git a/Tests/TimedGeocoderTest.php b/Tests/TimedGeocoderTest.php index ca8b130..4a735a0 100644 --- a/Tests/TimedGeocoderTest.php +++ b/Tests/TimedGeocoderTest.php @@ -47,7 +47,7 @@ public function testGeocode(): void { $this->delegate->expects($this->once()) ->method('geocodeQuery') - ->will($this->returnValue(new AddressCollection([]))); + ->willReturn(new AddressCollection([])); $this->geocoder->geocode('foo'); @@ -74,7 +74,7 @@ public function testReverse(): void { $this->delegate->expects($this->once()) ->method('reverseQuery') - ->will($this->returnValue(new AddressCollection([]))); + ->willReturn(new AddressCollection([])); $this->geocoder->reverse(0, 0); diff --git a/composer.json b/composer.json index fd4348f..d67a506 100644 --- a/composer.json +++ b/composer.json @@ -21,8 +21,8 @@ }, "require-dev": { "nyholm/nsa": "^1.1", - "phpunit/phpunit": "^9.5", - "symfony/stopwatch": "~2.5 || ~5.0" + "phpunit/phpunit": "^9.6.11", + "symfony/stopwatch": "~2.5 || ~5.0 || ~7.0" }, "suggest": { "symfony/stopwatch": "If you want to use the TimedGeocoder"