diff --git a/src/Objects/PostcodesIo.php b/src/Objects/PostcodesIo.php index 16cdb35..bbd6b23 100644 --- a/src/Objects/PostcodesIo.php +++ b/src/Objects/PostcodesIo.php @@ -1,9 +1,7 @@ 'ST163DP', + 'postcode' => 'ST163DP', 'expectedResponse' => [ - 'townCity' => 'Stafford', - 'county' => 'Staffordshire', - 'postcode' => 'ST16 3DP', + 'townCity' => 'Stafford', + 'county' => 'Staffordshire', + 'postcode' => 'ST16 3DP', 'longitude' => -2.11556, - 'latitude' => 52.822944, + 'latitude' => 52.822944, ], ], [ - 'postcode' => 'TN30YA', + 'postcode' => 'TN30YA', 'expectedResponse' => [ - 'townCity' => 'Tunbridge Wells', - 'county' => 'Kent', - 'postcode' => 'TN3 0YA', + 'townCity' => 'Tunbridge Wells', + 'county' => 'Kent', + 'postcode' => 'TN3 0YA', 'longitude' => 0.226856, - 'latitude' => 51.13246, + 'latitude' => 51.13246, ], ], ]; @@ -45,9 +41,8 @@ public function testLookup($postcode, $expectedResponse) $address = $addresses[0]; - foreach($expectedResponse as $key => $value) { + foreach ($expectedResponse as $key => $value) { $this->assertEquals($value, $address->$key); } } - }