Conditions | 3 |
Paths | 3 |
Total Lines | 47 |
Code Lines | 24 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function validInputProvider() { |
||
32 | $argLists = []; |
||
33 | |||
34 | $valid = []; |
||
35 | |||
36 | $valid[] = [ |
||
37 | [ |
||
38 | 42, |
||
39 | 4.2 |
||
40 | ], |
||
41 | ]; |
||
42 | |||
43 | $valid[] = [ |
||
44 | [ |
||
45 | 49.83798245308486, |
||
46 | 2.724609375 |
||
47 | ], |
||
48 | [ |
||
49 | 52.05249047600102, |
||
50 | 8.26171875 |
||
51 | ], |
||
52 | [ |
||
53 | 46.37725420510031, |
||
54 | 6.15234375 |
||
55 | ], |
||
56 | [ |
||
57 | 49.83798245308486, |
||
58 | 2.724609375 |
||
59 | ], |
||
60 | ]; |
||
61 | |||
62 | foreach ( $valid as $values ) { |
||
63 | $input = []; |
||
64 | $output = []; |
||
65 | |||
66 | foreach ( $values as $value ) { |
||
67 | $input[] = implode( ',', $value ); |
||
68 | $output[] = new LatLongValue( $value[0], $value[1] ); |
||
69 | } |
||
70 | |||
71 | $input = implode( ':', $input ); |
||
72 | |||
73 | $argLists[] = [ $input, new Line( $output ) ]; |
||
74 | } |
||
75 | |||
76 | return $argLists; |
||
77 | } |
||
78 | |||
100 |