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
156
136
157
-
static::assertTrue(isset($address->street), 'Incoming address did not have a street field');
158
-
static::assertTrue(is_string($address->street), 'Incoming address did not have a street value of type string');
137
+
Assert::assertTrue(isset($address->street), 'Incoming address did not have a street field');
138
+
Assert::assertIsString($address->street, 'Incoming address did not have a street value of type string');
159
139
160
-
static::assertTrue(isset($address->city->label), 'Incoming address did not have a city.label field');
161
-
static::assertTrue(is_string($address->city->label), 'Incoming address did not have a city.label value of type string');
140
+
Assert::assertTrue(isset($address->city->label), 'Incoming address did not have a city.label field');
141
+
Assert::assertIsString($address->city->label, 'Incoming address did not have a city.label value of type string');
162
142
163
-
static::assertTrue(isset($address->postcode), 'Incoming address did not have a postcode field');
164
-
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);
143
+
Assert::assertTrue(isset($address->postcode), 'Incoming address did not have a postcode field');
144
+
Assert::assertTrue(preg_match(self::POSTCODE_PATTERN, $address->postcode) === 1, 'Incoming address did not have a postcode value that matches the pattern: ' . self::POSTCODE_PATTERN);
165
145
166
-
static::assertTrue(isset($address->number), 'Incoming address did not have a number field');
167
-
static::assertTrue(is_string($address->number) || is_numeric($address->number), 'Incoming address did not have a number field with type string');
146
+
Assert::assertTrue(isset($address->number), 'Incoming address did not have a number field');
147
+
Assert::assertTrue(is_string($address->number) || is_numeric($address->number), 'Incoming address did not have a number field with type string');
168
148
169
149
$wgs84 = $address->geo->center->wgs84;
170
150
171
-
static::assertTrue(isset($wgs84->coordinates[0]), 'Incoming address did not have a longitude field');
172
-
static::assertTrue(is_float($address->geo->center->wgs84->coordinates[0]), 'Incoming address did not have a longitude value of type float');
151
+
Assert::assertTrue(isset($wgs84->coordinates[0]), 'Incoming address did not have a longitude field');
152
+
Assert::assertIsFloat($wgs84->coordinates[0], 'Incoming address did not have a longitude value of type float');
173
153
174
-
static::assertTrue(isset($wgs84->coordinates[1]), 'Incoming address did not have a latitude field');
175
-
static::assertTrue(is_float($address->geo->center->wgs84->coordinates[1]), 'Incoming address did not have a latitude value of type float');
154
+
Assert::assertTrue(isset($wgs84->coordinates[1]), 'Incoming address did not have a latitude field');
155
+
Assert::assertIsFloat($wgs84->coordinates[1], 'Incoming address did not have a latitude value of type float');
0 commit comments