You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// only test the availability of the most import fields and their values
165
166
166
-
$this->assertTrue(isset($address->street), 'Incoming address did not have a street field');
167
-
$this->assertTrue(is_string($address->street), 'Incoming address did not have a street value of type string');
167
+
static::assertTrue(isset($address->street), 'Incoming address did not have a street field');
168
+
static::assertTrue(is_string($address->street), 'Incoming address did not have a street value of type string');
169
+
170
+
static::assertTrue(isset($address->city->label), 'Incoming address did not have a city.label field');
171
+
static::assertTrue(is_string($address->city->label), 'Incoming address did not have a city.label value of type string');
168
172
169
-
$this->assertTrue(isset($address->city->label), 'Incoming address did not have a city.label field');
170
-
$this->assertTrue(is_string($address->city->label), 'Incoming address did not have a city.label value of type string');
173
+
static::assertTrue(isset($address->postcode), 'Incoming address did not have a postcode field');
174
+
static::assertTrue(preg_match(self::POSTCODE_PATTERN, $address->postcode) === 1, 'Incoming address did not have a postcode value that matches the pattern: ' . self::POSTCODE_PATTERN);
171
175
172
-
$this->assertTrue(isset($address->postcode), 'Incoming address did not have a postcode field');
173
-
$this->assertTrue(preg_match(self::POSTCODE_PATTERN, $address->postcode) === 1, 'Incoming address did not have a postcode value that matches the pattern: ' . self::POSTCODE_PATTERN);
176
+
static::assertTrue(isset($address->number), 'Incoming address did not have a number field');
177
+
static::assertTrue(is_string($address->number) || is_numeric($address->number), 'Incoming address did not have a number field with type string');
174
178
175
-
$this->assertTrue(isset($address->number), 'Incoming address did not have a number field');
176
-
$this->assertTrue(is_string($address->number) || is_numeric($address->number), 'Incoming address did not have a number field with type string');
179
+
$wgs84 = $address->geo->center->wgs84;
177
180
178
-
$this->assertTrue(isset($address->geo->center->wgs84->coordinates[0]), 'Incoming address did not have a longitude field');
179
-
$this->assertTrue(is_float($address->geo->center->wgs84->coordinates[0]), 'Incoming address did not have a longitude value of type float');
181
+
static::assertTrue(isset($wgs84->coordinates[0]), 'Incoming address did not have a longitude field');
182
+
static::assertTrue(is_float($address->geo->center->wgs84->coordinates[0]), 'Incoming address did not have a longitude value of type float');
180
183
181
-
$this->assertTrue(isset($address->geo->center->wgs84->coordinates[1]), 'Incoming address did not have a latitude field');
182
-
$this->assertTrue(is_float($address->geo->center->wgs84->coordinates[1]), 'Incoming address did not have a latitude value of type float');
184
+
static::assertTrue(isset($wgs84->coordinates[1]), 'Incoming address did not have a latitude field');
185
+
static::assertTrue(is_float($address->geo->center->wgs84->coordinates[1]), 'Incoming address did not have a latitude value of type float');
0 commit comments