@@ 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 |
@@ 36-43 (lines=8) @@ | ||
33 | self::assertSame($accuracyMeters, $coordinate->getAccuracyMeters()); |
|
34 | } |
|
35 | ||
36 | public function getCoordinates(): array |
|
37 | { |
|
38 | return [ |
|
39 | 'Almere Poort, The Netherlands' => [52.3504547, 5.1511458, 10], |
|
40 | 'Amsterdam, The Netherlands' => [52.3702157, 4.8951679, 0], |
|
41 | 'Den Haag, The Netherlands' => [52.0704978, 4.3006999, -10.1], |
|
42 | ]; |
|
43 | } |
|
44 | } |
|
45 |