@@ 226-234 (lines=9) @@ | ||
223 | } |
|
224 | ||
225 | ||
226 | public function testResultListOffsetExistsNotImplemented() { |
|
227 | try { |
|
228 | $resultList = $this->getResultsFor('New Zealand', 10); |
|
229 | $resultList->offsetExists(10); |
|
230 | $this->assertFalse(true, "This line should not have been reached"); |
|
231 | } catch (Exception $e) { |
|
232 | $this->assertEquals('Not implemented', $e->getMessage()); |
|
233 | } |
|
234 | } |
|
235 | ||
236 | ||
237 | public function testResultListOffsetGetNotImplemented() { |
|
@@ 237-245 (lines=9) @@ | ||
234 | } |
|
235 | ||
236 | ||
237 | public function testResultListOffsetGetNotImplemented() { |
|
238 | try { |
|
239 | $resultList = $this->getResultsFor('New Zealand', 10); |
|
240 | $resultList->offsetGet(10); |
|
241 | $this->assertFalse(true, "This line should not have been reached"); |
|
242 | } catch (Exception $e) { |
|
243 | $this->assertEquals('Not implemented', $e->getMessage()); |
|
244 | } |
|
245 | } |
|
246 | ||
247 | ||
248 | public function testResultListOffsetSetNotImplemented() { |
|
@@ 248-256 (lines=9) @@ | ||
245 | } |
|
246 | ||
247 | ||
248 | public function testResultListOffsetSetNotImplemented() { |
|
249 | try { |
|
250 | $resultList = $this->getResultsFor('New Zealand', 10); |
|
251 | $resultList->offsetSet(10, null); |
|
252 | $this->assertFalse(true, "This line should not have been reached"); |
|
253 | } catch (Exception $e) { |
|
254 | $this->assertEquals('Not implemented', $e->getMessage()); |
|
255 | } |
|
256 | } |
|
257 | ||
258 | ||
259 | public function testResultListOffsetUnsetNotImplemented() { |
|
@@ 259-267 (lines=9) @@ | ||
256 | } |
|
257 | ||
258 | ||
259 | public function testResultListOffsetUnsetNotImplemented() { |
|
260 | try { |
|
261 | $resultList = $this->getResultsFor('New Zealand', 10); |
|
262 | $resultList->offsetUnset(10); |
|
263 | $this->assertFalse(true, "This line should not have been reached"); |
|
264 | } catch (Exception $e) { |
|
265 | $this->assertEquals('Not implemented', $e->getMessage()); |
|
266 | } |
|
267 | } |
|
268 | ||
269 | ||
270 | public function testResultListAddNotImplemented() { |
|
@@ 270-279 (lines=10) @@ | ||
267 | } |
|
268 | ||
269 | ||
270 | public function testResultListAddNotImplemented() { |
|
271 | try { |
|
272 | $resultList = $this->getResultsFor('New Zealand', 10); |
|
273 | $fp = new FlickrPhotoTO(); |
|
274 | $resultList->add($fp); |
|
275 | $this->assertFalse(true, "This line should not have been reached"); |
|
276 | } catch (Exception $e) { |
|
277 | $this->assertEquals('Not implemented', $e->getMessage()); |
|
278 | } |
|
279 | } |
|
280 | ||
281 | ||
282 | public function testResultListRemoveNotImplemented() { |
|
@@ 282-291 (lines=10) @@ | ||
279 | } |
|
280 | ||
281 | ||
282 | public function testResultListRemoveNotImplemented() { |
|
283 | try { |
|
284 | $resultList = $this->getResultsFor('New Zealand', 10); |
|
285 | $fp = new FlickrPhotoTO(); |
|
286 | $resultList->remove($fp); |
|
287 | $this->assertFalse(true, "This line should not have been reached"); |
|
288 | } catch (Exception $e) { |
|
289 | $this->assertEquals('Not implemented', $e->getMessage()); |
|
290 | } |
|
291 | } |
|
292 | ||
293 | ||
294 | public function testResultListFindNotImplemented() { |
|
@@ 294-303 (lines=10) @@ | ||
291 | } |
|
292 | ||
293 | ||
294 | public function testResultListFindNotImplemented() { |
|
295 | try { |
|
296 | $resultList = $this->getResultsFor('New Zealand', 10); |
|
297 | $fp = new FlickrPhotoTO(); |
|
298 | $resultList->find(4, $fp); |
|
299 | $this->assertFalse(true, "This line should not have been reached"); |
|
300 | } catch (Exception $e) { |
|
301 | $this->assertEquals('Not implemented', $e->getMessage()); |
|
302 | } |
|
303 | } |
|
304 | ||
305 | ||
306 | ||
@@ 337-345 (lines=9) @@ | ||
334 | ||
335 | } |
|
336 | ||
337 | public function testResultListFirstNotImplemented() { |
|
338 | try { |
|
339 | $resultList = $this->getResultsFor('New Zealand', 10); |
|
340 | $resultList->first(); |
|
341 | $this->assertFalse(true, "This line should not have been reached"); |
|
342 | } catch (Exception $e) { |
|
343 | $this->assertEquals('Not implemented', $e->getMessage()); |
|
344 | } |
|
345 | } |
|
346 | ||
347 | ||
348 | public function testResultListLastNotImplemented() { |
|
@@ 348-356 (lines=9) @@ | ||
345 | } |
|
346 | ||
347 | ||
348 | public function testResultListLastNotImplemented() { |
|
349 | try { |
|
350 | $resultList = $this->getResultsFor('New Zealand', 10); |
|
351 | $resultList->last(); |
|
352 | $this->assertFalse(true, "This line should not have been reached"); |
|
353 | } catch (Exception $e) { |
|
354 | $this->assertEquals('Not implemented', $e->getMessage()); |
|
355 | } |
|
356 | } |
|
357 | ||
358 | ||
359 | public function testFoldedIndexes() { |