| @@ 28-35 (lines=8) @@ | ||
| 25 | self::assertSame($accuracyMeters, $coordinate->getAccuracyMeters()); |
|
| 26 | } |
|
| 27 | ||
| 28 | public function getCoordinates(): array |
|
| 29 | { |
|
| 30 | return [ |
|
| 31 | 'Almere Poort, The Netherlands' => [52.3504547, 5.1511458, 10], |
|
| 32 | 'Amsterdam, The Netherlands' => [52.3702157, 4.8951679, 0], |
|
| 33 | 'Den Haag, The Netherlands' => [52.0704978, 4.3006999, -10.1], |
|
| 34 | ]; |
|
| 35 | } |
|
| 36 | ||
| 37 | /** |
|
| 38 | * @test |
|
| @@ 30-38 (lines=9) @@ | ||
| 27 | self::assertSame($shouldReceiveChange, (int) $payment->getChangeAmount()->getAmount()); |
|
| 28 | } |
|
| 29 | ||
| 30 | public function getAmounts(): array |
|
| 31 | { |
|
| 32 | return [ |
|
| 33 | 'positive 1' => [200, 500], |
|
| 34 | 'positive 2' => [1000, 250], |
|
| 35 | 'negative 1' => [-100, 0], |
|
| 36 | 'negative 2' => [-1000, -1000], |
|
| 37 | ]; |
|
| 38 | } |
|
| 39 | } |
|
| 40 | ||
| @@ 37-44 (lines=8) @@ | ||
| 34 | self::assertSame($accuracyMeters, $coordinate->getAccuracyMeters()); |
|
| 35 | } |
|
| 36 | ||
| 37 | public function getCoordinates(): array |
|
| 38 | { |
|
| 39 | return [ |
|
| 40 | 'Almere Poort, The Netherlands' => [52.3504547, 5.1511458, 10], |
|
| 41 | 'Amsterdam, The Netherlands' => [52.3702157, 4.8951679, 0], |
|
| 42 | 'Den Haag, The Netherlands' => [52.0704978, 4.3006999, -10.1], |
|
| 43 | ]; |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||