/**
  * Test getRelations called with more than one argument/parameter.
  *
  * @return void
  */
 public function testGetRelationsManyArgs()
 {
     $mock = new HTTP_Request2_Adapter_Mock();
     $mock->addResponse(fopen(__DIR__ . '/responses/capabilities.xml', 'rb'));
     $mock->addResponse(fopen(__DIR__ . '/responses/relations_917266_20645_2740.xml', 'rb'));
     $mock->addResponse(fopen(__DIR__ . '/responses/relation_changeset.xml', 'rb'));
     $config = array('adapter' => $mock, 'server' => 'http://api06.dev.openstreetmap.org/');
     $osm = new Services_OpenStreetMap($config);
     $relations = $osm->getRelations(917266, 20645, 2740);
     $this->assertEquals(3, sizeof($relations));
     $relationsInfo = array(array('id' => 2740, 'name' => 'The Wicklow Way', 'type' => 'route', 'members' => array('role' => '', 'count' => 113, 'type' => 'node')), array('id' => 20645, 'name' => 'International E-road network', 'type' => 'network', 'members' => array('role' => '', 'type' => 'relation', 'count' => 48)), array('id' => 917266, 'name' => 'Dublin Bus route 14', 'type' => 'route', 'members' => array('role' => 'forward', 'type' => 'way', 'count' => 112)));
     foreach ($relations as $key => $relation) {
         $tags = $relation->getTags();
         $members = $relation->getMembers();
         $this->assertEquals($tags['name'], $relationsInfo[$key]['name']);
         $this->assertEquals($tags['type'], $relationsInfo[$key]['type']);
         $this->assertEquals($relation->getId(), $relationsInfo[$key]['id']);
         $this->assertEquals(sizeof($members), $relationsInfo[$key]['members']['count']);
         $this->assertEquals($members[0]['type'], $relationsInfo[$key]['members']['type']);
         $this->assertEquals($members[0]['role'], $relationsInfo[$key]['members']['role']);
     }
 }