'N', 'osm_id'=> 38274, 'class' => 'place');
        $this->assertSame(
                detailsPermaLink($aFeature),
                'node 38274'
                );
    }
    public function testDetailsPermaLinkWay()
    {
        $aFeature = array('osm_type' => 'W', 'osm_id'=> 65, 'class' => 'highway');
        $this->assertSame(
                detailsPermaLink($aFeature),
                'way 65'
                );
    }
    public function testDetailsPermaLinkRelation()
    {
        $aFeature = array('osm_type' => 'R', 'osm_id'=> 9908, 'class' => 'waterway');
        $this->assertSame(
                detailsPermaLink($aFeature),
                'relation 9908'
                );
    }
    public function testDetailsPermaLinkTiger()
    {
        $aFeature = array('osm_type' => 'T', 'osm_id'=> 2, 'place_id' => 334);
        $this->assertSame(
                detailsPermaLink($aFeature, 'foo'),
                'foo'
                );
    }
    public function testDetailsPermaLinkInterpolation()
    {
        $aFeature = array('osm_type' => 'I', 'osm_id'=> 400, 'place_id' => 3);
        $this->assertSame(
                detailsPermaLink($aFeature, 'foo'),
                'foo'
                );
    }
    public function testDetailsPermaLinkWithExtraPropertiesNode()
    {
        $aFeature = array('osm_type' => 'N', 'osm_id'=> 2, 'class' => 'amenity');
        $this->assertSame(
                detailsPermaLink($aFeature, 'something', 'class="xtype"'),
                'something'
                );
    }
    public function testDetailsPermaLinkWithExtraPropertiesTiger()
    {
        $aFeature = array('osm_type' => 'T', 'osm_id'=> 5, 'place_id' => 46);
        $this->assertSame(
                detailsPermaLink($aFeature, 'something', 'class="xtype"'),
                'something'
                );
    }
}