| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function valuesFoundWhenExchangingArrayAreCastToString() |
||
| 15 | { |
||
| 16 | $payload = [ |
||
| 17 | 'latitude' => 1000.7, |
||
| 18 | 'longitude' => -2000.4, |
||
| 19 | ]; |
||
| 20 | |||
| 21 | $location = new VisitLocation(); |
||
| 22 | $location->exchangeArray($payload); |
||
| 23 | |||
| 24 | $this->assertSame('1000.7', $location->getLatitude()); |
||
| 25 | $this->assertSame('-2000.4', $location->getLongitude()); |
||
| 26 | } |
||
| 27 | } |
||
| 28 |