Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function testAddress() |
||
21 | { |
||
22 | $address = new Address('Test Street', '1010AB', 'Haarlem', 666, 'Noord-Holland'); |
||
23 | $address->setGeoLocation(['lat' => 42.3243, 'long' => 32.3424]); |
||
24 | |||
25 | $this->assertSame($address->getStreet(), 'Test Street'); |
||
26 | $this->assertSame($address->getZipcode(), '1010AB'); |
||
27 | $this->assertSame($address->getCity(), 'Haarlem'); |
||
28 | $this->assertSame($address->getNumber(), 666); |
||
29 | $this->assertSame($address->getProvince(), 'Noord-Holland'); |
||
30 | $this->assertSame($address->getGeoLocation(), ['lat' => 42.3243, 'long' => 32.3424]); |
||
31 | |||
32 | $this->assertSame([ |
||
33 | 'street' => 'Test Street', |
||
34 | 'zipcode' => '1010AB', |
||
35 | 'city' => 'Haarlem', |
||
36 | 'house_number' => 666, |
||
37 | 'province' => 'Noord-Holland', |
||
38 | 'geo_location' => ['lat' => 42.3243, 'long' => 32.3424], |
||
39 | ], $address->toArray()); |
||
40 | } |
||
41 | } |
||
42 |