Conditions | 1 |
Paths | 1 |
Total Lines | 32 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | public function processingProvider() { |
||
42 | $argLists = []; |
||
43 | |||
44 | $values = [ |
||
45 | 'location1' => '4,2', |
||
46 | 'location2' => '42,0', |
||
47 | ]; |
||
48 | |||
49 | $expected = [ |
||
50 | 'location1' => new Location( new LatLongValue( 4, 2 ) ), |
||
51 | 'location2' => new Location( new LatLongValue( 42, 0 ) ), |
||
52 | ]; |
||
53 | |||
54 | $argLists[] = [ $values, $expected ]; |
||
55 | |||
56 | $values = [ |
||
57 | 'location1' => '4,2', |
||
58 | 'location2' => '42,0', |
||
59 | 'unit' => '~=[,,_,,]:3', |
||
60 | 'decimals' => '1', |
||
61 | ]; |
||
62 | |||
63 | $expected = [ |
||
64 | 'location1' => new Location( new LatLongValue( 4, 2 ) ), |
||
65 | 'location2' => new Location( new LatLongValue( 42, 0 ) ), |
||
66 | 'decimals' => 1, |
||
67 | ]; |
||
68 | |||
69 | $argLists[] = [ $values, $expected ]; |
||
70 | |||
71 | return $argLists; |
||
72 | } |
||
73 | |||
81 | } |