| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function testLocationSetterGetter() { |
||
| 27 | |||
| 28 | $lat_lng = new Location(); |
||
| 29 | |||
| 30 | $lat_lng->setLat(-50.09); |
||
| 31 | $lat_lng->setLng(-100); |
||
| 32 | |||
| 33 | $this->assertEquals(new Location([ |
||
| 34 | LatLngFields::LAT => -50.09, |
||
| 35 | LatLngFields::LNG => -100, |
||
| 36 | ]), $lat_lng); |
||
| 37 | |||
| 38 | $this->assertEquals(-50.09, $lat_lng->getLat()); |
||
| 39 | $this->assertEquals(-100, $lat_lng->getLng()); |
||
| 40 | |||
| 43 |