public function testGetLabelTag()
{
$aPlace = array('class' => 'boundary', 'type' => 'administrative',
public function testGetLabelTag()
{
$aPlace = array('class' => 'boundary', 'type' => 'administrative',
$this->assertEquals('city', ClassTypes\getLabelTag($aPlace));
$aPlace = array('class' => 'boundary', 'type' => 'administrative',
$this->assertEquals('city', ClassTypes\getLabelTag($aPlace));
$aPlace = array('class' => 'boundary', 'type' => 'administrative',
$this->assertEquals('state_district', ClassTypes\getLabelTag($aPlace));
$aPlace = array('class' => 'boundary', 'type' => 'administrative');
$this->assertEquals('administrative', ClassTypes\getLabelTag($aPlace));
$this->assertEquals('state_district', ClassTypes\getLabelTag($aPlace));
$aPlace = array('class' => 'boundary', 'type' => 'administrative');
$this->assertEquals('administrative', ClassTypes\getLabelTag($aPlace));
- $aPlace = array('class' => 'place', 'type' => 'hamlet',
- 'rank_address' => '20');
+ $aPlace = array('class' => 'place', 'type' => 'hamlet', 'rank_address' => '20');
$this->assertEquals('hamlet', ClassTypes\getLabelTag($aPlace));
$aPlace = array('class' => 'highway', 'type' => 'residential',
$this->assertEquals('hamlet', ClassTypes\getLabelTag($aPlace));
$aPlace = array('class' => 'highway', 'type' => 'residential',
$this->assertEquals('road', ClassTypes\getLabelTag($aPlace));
$aPlace = array('class' => 'place', 'type' => 'house_number',
$this->assertEquals('road', ClassTypes\getLabelTag($aPlace));
$aPlace = array('class' => 'place', 'type' => 'house_number',
$this->assertEquals('house_number', ClassTypes\getLabelTag($aPlace));
$aPlace = array('class' => 'amenity', 'type' => 'prison',
$this->assertEquals('house_number', ClassTypes\getLabelTag($aPlace));
$aPlace = array('class' => 'amenity', 'type' => 'prison',
$this->assertEquals('amenity', ClassTypes\getLabelTag($aPlace));
}
public function testGetLabel()
{
$aPlace = array('class' => 'boundary', 'type' => 'administrative',
$this->assertEquals('amenity', ClassTypes\getLabelTag($aPlace));
}
public function testGetLabel()
{
$aPlace = array('class' => 'boundary', 'type' => 'administrative',
$this->assertEquals('City', ClassTypes\getLabel($aPlace));
$aPlace = array('class' => 'boundary', 'type' => 'administrative',
$this->assertEquals('City', ClassTypes\getLabel($aPlace));
$aPlace = array('class' => 'boundary', 'type' => 'administrative',
$this->assertEquals('State District', ClassTypes\getLabel($aPlace));
$aPlace = array('class' => 'boundary', 'type' => 'administrative');
$this->assertEquals('State District', ClassTypes\getLabel($aPlace));
$aPlace = array('class' => 'boundary', 'type' => 'administrative');