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