@@ -103,7 +103,7 @@ public function testGeocodeQuery(): void
103103 if (isset ($ this ->skippedTests [__FUNCTION__ ])) {
104104 $ this ->markTestSkipped ($ this ->skippedTests [__FUNCTION__ ]);
105105 }
106- if (!self ::$ testAddress ) {
106+ if (!static ::$ testAddress ) {
107107 $ this ->markTestSkipped ('Geocoding address is not supported by this provider ' );
108108 }
109109
@@ -133,7 +133,7 @@ public function testGeocodeQueryWithNoResults(): void
133133 if (isset ($ this ->skippedTests [__FUNCTION__ ])) {
134134 $ this ->markTestSkipped ($ this ->skippedTests [__FUNCTION__ ]);
135135 }
136- if (!self ::$ testAddress ) {
136+ if (!static ::$ testAddress ) {
137137 $ this ->markTestSkipped ('Geocoding address is not supported by this provider ' );
138138 }
139139
@@ -149,7 +149,7 @@ public function testReverseQuery(): void
149149 if (isset ($ this ->skippedTests [__FUNCTION__ ])) {
150150 $ this ->markTestSkipped ($ this ->skippedTests [__FUNCTION__ ]);
151151 }
152- if (!self ::$ testReverse ) {
152+ if (!static ::$ testReverse ) {
153153 $ this ->markTestSkipped ('Reverse geocoding address is not supported by this provider ' );
154154 }
155155
@@ -166,7 +166,7 @@ public function testReverseQueryWithNoResults(): void
166166 $ this ->markTestSkipped ($ this ->skippedTests [__FUNCTION__ ]);
167167 }
168168
169- if (!self ::$ testReverse ) {
169+ if (!static ::$ testReverse ) {
170170 $ this ->markTestSkipped ('Reverse geocoding address is not supported by this provider ' );
171171 }
172172
@@ -182,7 +182,7 @@ public function testGeocodeIpv4(): void
182182 $ this ->markTestSkipped ($ this ->skippedTests [__FUNCTION__ ]);
183183 }
184184
185- if (!self ::$ testIpv4 ) {
185+ if (!static ::$ testIpv4 ) {
186186 $ this ->markTestSkipped ('Geocoding IPv4 is not supported by this provider ' );
187187 }
188188
@@ -197,7 +197,7 @@ public function testGeocodeIpv6(): void
197197 $ this ->markTestSkipped ($ this ->skippedTests [__FUNCTION__ ]);
198198 }
199199
200- if (!self ::$ testIpv6 ) {
200+ if (!static ::$ testIpv6 ) {
201201 $ this ->markTestSkipped ('Geocoding IPv6 is not supported by this provider ' );
202202 }
203203
@@ -242,11 +242,11 @@ public static function exceptionDataProvider(): array
242242 {
243243 $ testData = [];
244244
245- if (!self ::$ testHttpProvider ) {
245+ if (!static ::$ testHttpProvider ) {
246246 return $ testData ;
247247 }
248248
249- if (self ::$ testAddress ) {
249+ if (static ::$ testAddress ) {
250250 $ q = GeocodeQuery::create ('foo ' );
251251 $ testData [] = [$ q , InvalidServerResponse::class, new Response (500 ), 'Server 500 ' ];
252252 $ testData [] = [$ q , InvalidServerResponse::class, new Response (400 ), 'Server 400 ' ];
@@ -255,7 +255,7 @@ public static function exceptionDataProvider(): array
255255 $ testData [] = [$ q , InvalidServerResponse::class, new Response (200 ), 'Empty response ' ];
256256 }
257257
258- if (self ::$ testReverse ) {
258+ if (static ::$ testReverse ) {
259259 $ q = ReverseQuery::fromCoordinates (0 , 0 );
260260 $ testData [] = [$ q , InvalidServerResponse::class, new Response (500 ), 'Server 500 ' ];
261261 $ testData [] = [$ q , InvalidServerResponse::class, new Response (400 ), 'Server 400 ' ];
@@ -264,7 +264,7 @@ public static function exceptionDataProvider(): array
264264 $ testData [] = [$ q , QuotaExceeded::class, new Response (429 ), 'Quota exceeded response ' ];
265265 }
266266
267- if (self ::$ testIpv4 ) {
267+ if (static ::$ testIpv4 ) {
268268 $ q = GeocodeQuery::create ('123.123.123.123 ' );
269269 $ testData [] = [$ q , InvalidServerResponse::class, new Response (500 ), 'Server 500 ' ];
270270 $ testData [] = [$ q , InvalidServerResponse::class, new Response (400 ), 'Server 400 ' ];
@@ -273,7 +273,7 @@ public static function exceptionDataProvider(): array
273273 $ testData [] = [$ q , QuotaExceeded::class, new Response (429 ), 'Quota exceeded response ' ];
274274 }
275275
276- if (self ::$ testIpv6 ) {
276+ if (static ::$ testIpv6 ) {
277277 $ q = GeocodeQuery::create ('2001:0db8:0000:0042:0000:8a2e:0370:7334 ' );
278278 $ testData [] = [$ q , InvalidServerResponse::class, new Response (500 ), 'Server 500 ' ];
279279 $ testData [] = [$ q , InvalidServerResponse::class, new Response (400 ), 'Server 400 ' ];
0 commit comments