Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
madhuracj committed Sep 18, 2012
1 parent cee3dc7 commit c3a4d4f
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions test/classes/gis/PMA_GIS_Geometry_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,13 @@ public function providerForTestExtractPoints()
}

/**
* test case for getBoundsForOl() method
*
* @param type $srid
* @param type $scale_data
* @param type $output
* @param string $srid spatial reference ID
* @param array $scale_data data related to scaling
* @param string $output rxpected output
*
* @return void
* @dataProvider providerForTestGetBoundsForOl
*/
public function testGetBoundsForOl($srid, $scale_data, $output)
Expand All @@ -265,6 +268,11 @@ public function testGetBoundsForOl($srid, $scale_data, $output)
);
}

/**
* data provider for testGetBoundsForOl() test case
*
* @return array test data for the testGetBoundsForOl() test case
*/
public function providerForTestGetBoundsForOl()
{
return array(
Expand All @@ -283,12 +291,14 @@ public function providerForTestGetBoundsForOl()
}

/**
* test case for getPolygonArrayForOpenLayers() method
*
* @param type $polygons
* @param type $srid
* @param type $output
* @param array $polygons x and y coordinate pairs for each polygon
* @param string $srid spatial reference id
* @param string $output expected output
*
*@dataProvider providerForTestGetPolygonArrayForOpenLayers
* @return void
* @dataProvider providerForTestGetPolygonArrayForOpenLayers
*/
public function testGetPolygonArrayForOpenLayers($polygons, $srid, $output)
{
Expand All @@ -301,6 +311,11 @@ public function testGetPolygonArrayForOpenLayers($polygons, $srid, $output)
);
}

/**
* data provider for testGetPolygonArrayForOpenLayers() test case
*
* @return array test data for testGetPolygonArrayForOpenLayers() test case
*/
public function providerForTestGetPolygonArrayForOpenLayers()
{
return array(
Expand All @@ -309,9 +324,7 @@ public function providerForTestGetPolygonArrayForOpenLayers()
4326,
'new Array(new OpenLayers.Geometry.Polygon(new Array(new OpenLayers.Geometry.LinearRing(new Array((new OpenLayers.Geometry.Point(,)).transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject()))))))'
)

);
}

}
?>

0 comments on commit c3a4d4f

Please sign in to comment.