Conditions | 3 |
Paths | 3 |
Total Lines | 22 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function validInputProvider() { |
||
28 | $argLists = []; |
||
29 | |||
30 | $valid = [ |
||
31 | "http://demo.cubewerx.com/demo/cubeserv/cubeserv.cgi? Foundation.GTOPO30" => |
||
32 | [ "http://demo.cubewerx.com/demo/cubeserv/cubeserv.cgi?", "Foundation.GTOPO30" ], |
||
33 | "http://maps.imr.no:80/geoserver/wms? vulnerable_areas:Identified_coral_area coral_identified_areas" => |
||
34 | [ "http://maps.imr.no:80/geoserver/wms?", "vulnerable_areas:Identified_coral_area", "coral_identified_areas" ] |
||
35 | ]; |
||
36 | |||
37 | foreach ( $valid as $value => $expected ) { |
||
38 | $expectedOverlay = new WmsOverlay( $expected[0], $expected[1] ); |
||
39 | |||
40 | if ( count( $expected ) == 3 ) { |
||
41 | $expectedOverlay->setWmsStyleName( $expected[2] ); |
||
42 | } |
||
43 | |||
44 | $argLists[] = [ (string)$value, $expectedOverlay ]; |
||
45 | } |
||
46 | |||
47 | return $argLists; |
||
48 | } |
||
49 | |||
64 |