Index: trunk/extensions/Maps/test/MapsCoordinateParserTest.php |
— | — | @@ -82,15 +82,6 @@ |
83 | 83 | ); |
84 | 84 | |
85 | 85 | /** |
86 | | - * Formatting tests. |
87 | | - * |
88 | | - * @var array |
89 | | - */ |
90 | | - public static $formattingTests = array( |
91 | | - |
92 | | - ); |
93 | | - |
94 | | - /** |
95 | 86 | * Invalid coordinates. |
96 | 87 | * |
97 | 88 | * @var array |
— | — | @@ -131,16 +122,9 @@ |
132 | 123 | } |
133 | 124 | |
134 | 125 | /** |
135 | | - * Constructs the test case. |
136 | | - */ |
137 | | - public function __construct() { |
138 | | - } |
139 | | - |
140 | | - /** |
141 | 126 | * Tests MapsCoordinateParser::parseCoordinates() |
142 | 127 | */ |
143 | 128 | public function testParseCoordinates() { |
144 | | - // TODO Auto-generated MapsCoordinateParserTest::testParseCoordinates() |
145 | 129 | foreach ( self::$fakeCoordinates as $coord ) { |
146 | 130 | $this->assertFalse( MapsCoordinateParser::parseCoordinates( $coord ), "parseCoordinates did not return false for $coord." ); |
147 | 131 | } |
— | — | @@ -172,22 +156,8 @@ |
173 | 157 | |
174 | 158 | } |
175 | 159 | |
176 | | - /* |
177 | | - public function coordinatesProvider() { |
178 | | - die(__METHOD__); |
179 | | - $coords = array(); |
180 | | - |
181 | | - foreach( self::$coordinates as $coordsOfType ) { |
182 | | - foreach( $coordsOfType as $coord ) { |
183 | | - $coords[] = array( $coord ); |
184 | | - } |
185 | | - } |
186 | | - return $coords; |
187 | | - } |
188 | | - */ |
189 | | - |
190 | 160 | /** |
191 | | - * @dataProvider coordinatesProvider |
| 161 | + * Tests MapsCoordinateParser::areCoordinates() |
192 | 162 | */ |
193 | 163 | public function testAreCoordinates() { |
194 | 164 | foreach( self::$coordinates as $coordsOfType ) { |
— | — | @@ -202,28 +172,6 @@ |
203 | 173 | } |
204 | 174 | |
205 | 175 | /** |
206 | | - * Tests MapsCoordinateParser::formatCoordinates() |
207 | | - */ |
208 | | - public function testFormatCoordinates() { |
209 | | - // TODO Auto-generated MapsCoordinateParserTest::testFormatCoordinates() |
210 | | - $this->markTestIncomplete ( "formatCoordinates test not implemented" ); |
211 | | - |
212 | | - MapsCoordinateParser::formatCoordinates(/* parameters */); |
213 | | - |
214 | | - } |
215 | | - |
216 | | - /** |
217 | | - * Tests MapsCoordinateParser::formatToArray() |
218 | | - */ |
219 | | - public function testFormatToArray() { |
220 | | - // TODO Auto-generated MapsCoordinateParserTest::testFormatToArray() |
221 | | - $this->markTestIncomplete ( "formatToArray test not implemented" ); |
222 | | - |
223 | | - MapsCoordinateParser::formatToArray(/* parameters */); |
224 | | - |
225 | | - } |
226 | | - |
227 | | - /** |
228 | 176 | * Tests MapsCoordinateParser::areFloatCoordinates() |
229 | 177 | */ |
230 | 178 | public function testAreFloatCoordinates() { |
— | — | @@ -275,7 +223,6 @@ |
276 | 224 | * Tests MapsCoordinateParser::parseAndFormat() |
277 | 225 | */ |
278 | 226 | public function testParseAndFormat() { |
279 | | - // TODO Auto-generated MapsCoordinateParserTest::testParseAndFormat() |
280 | 227 | foreach ( self::$fakeCoordinates as $coord ) { |
281 | 228 | $this->assertFalse( MapsCoordinateParser::parseAndFormat( $coord ), "parseAndFormat did not return false for $coord." ); |
282 | 229 | } |