Index: trunk/extensions/Maps/test/MapsCoordinateParserTest.php |
— | — | @@ -54,7 +54,9 @@ |
55 | 55 | |
56 | 56 | public static $coordinateMappings = array( |
57 | 57 | 'float-dms' => array( |
58 | | - '42° 30\' 0", -42° 30\' 0"' => array( '42.5, -42.5', '42.5 N, 42.5 W' ) |
| 58 | + '42° 30\' 0", -42° 30\' 0"' => array( '42.5, -42.5', '42.5 N, 42.5 W' ), |
| 59 | + '-42° 30\' 0", 42° 30\' 0"' => array( '-42.5, 42.5', '42.5 S, 42.5 E' ), |
| 60 | + '42° 25\' 27", 42° 25\' 27"' => array( '42.4242, 42.4242', '42.4242 N, 42.4242 E' ), |
59 | 61 | ), |
60 | 62 | ); |
61 | 63 | |
— | — | @@ -142,7 +144,7 @@ |
143 | 145 | /** |
144 | 146 | * @dataProvider coordinatesProvider |
145 | 147 | */ |
146 | | - public function testAreCoordinates( $coord ) { |
| 148 | + public function testAreCoordinates() { |
147 | 149 | foreach( self::$coordinates as $coordsOfType ) { |
148 | 150 | foreach( $coordsOfType as $coord ) { |
149 | 151 | $this->assertTrue( MapsCoordinateParser::areCoordinates( $coord ), "$coord not recognized as coordinate." ); |
— | — | @@ -239,7 +241,7 @@ |
240 | 242 | $this->assertEquals( |
241 | 243 | $destination, |
242 | 244 | $result, |
243 | | - "$source parsed to $result, not $destination" |
| 245 | + "$source parsed to \n$result, not \n$destination." |
244 | 246 | ); |
245 | 247 | } |
246 | 248 | } |