Geocoder
Geocoder copied to clipboard
tests: fix deprecation from PHPUnit
There was 1 warning:
1) Geocoder\Provider\GeoIP2\Tests\GeoIP2AdapterTest::testReaderResponseIsJsonEncoded
assertObjectHasAttribute() is deprecated and will be removed in PHPUnit 10. Refactor your test to use assertObjectHasProperty() instead.
That breaks all "(low)" checks. I would wait until we upgrade to PHPUnit 10 before making that change.
This is maybe solved by https://github.com/geocoder-php/Geocoder/pull/1218 with Raising minimum PHPUnit version to 9.6 (or 9.6.x)
Bumping the minium PHPUnit version, solved this problem. But of course this is up to you, to wait until PHPUnit 10+.