Take common code to PMA_GIS_GeomTest class

This commit is contained in:
Madhura Jayaratne 2011-08-24 10:00:35 +05:30
parent 98a770b415
commit 361544ecf7
7 changed files with 14 additions and 84 deletions

View File

@ -56,5 +56,19 @@ abstract class PMA_GIS_GeomTest extends PHPUnit_Framework_TestCase
);
}
}
/**
* test scaleRow method
*
* @param string $spatial spatial data of a row
* @param array $min_max expected results
*
* @dataProvider providerForTestScaleRow
* @return nothing
*/
public function testScaleRow($spatial, $min_max)
{
$this->assertEquals($this->object->scaleRow($spatial), $min_max);
}
}
?>

View File

@ -139,20 +139,6 @@ class PMA_GIS_LinestringTest extends PMA_GIS_GeomTest
);
}
/**
* test scaleRow method
*
* @param string $spatial spatial data of a row
* @param array $min_max expected results
*
* @dataProvider providerForTestScaleRow
* @return nothing
*/
public function testScaleRow($spatial, $min_max)
{
$this->assertEquals($this->object->scaleRow($spatial), $min_max);
}
/**
* data provider for testScaleRow
*

View File

@ -199,20 +199,6 @@ class PMA_GIS_MultilinestringTest extends PMA_GIS_GeomTest
);
}
/**
* test scaleRow method
*
* @param string $spatial spatial data of a row
* @param array $min_max expected results
*
* @dataProvider providerForTestScaleRow
* @return nothing
*/
public function testScaleRow($spatial, $min_max)
{
$this->assertEquals($this->object->scaleRow($spatial), $min_max);
}
/**
* data provider for testScaleRow
*

View File

@ -143,20 +143,6 @@ class PMA_GIS_MultipointTest extends PMA_GIS_GeomTest
);
}
/**
* test scaleRow method
*
* @param string $spatial spatial data of a row
* @param array $min_max expected results
*
* @dataProvider providerForTestScaleRow
* @return nothing
*/
public function testScaleRow($spatial, $min_max)
{
$this->assertEquals($this->object->scaleRow($spatial), $min_max);
}
/**
* data provider for testScaleRow
*

View File

@ -227,20 +227,6 @@ class PMA_GIS_MultipolygonTest extends PMA_GIS_GeomTest
);
}
/**
* test scaleRow method
*
* @param string $spatial spatial data of a row
* @param array $min_max expected results
*
* @dataProvider providerForTestScaleRow
* @return nothing
*/
public function testScaleRow($spatial, $min_max)
{
$this->assertEquals($this->object->scaleRow($spatial), $min_max);
}
/**
* data provider for testScaleRow
*

View File

@ -145,20 +145,6 @@ class PMA_GIS_PointTest extends PMA_GIS_GeomTest
);
}
/**
* test scaleRow method
*
* @param string $spatial spatial data of a row
* @param array $min_max expected results
*
* @dataProvider providerForTestScaleRow
* @return nothing
*/
public function testScaleRow($spatial, $min_max)
{
$this->assertEquals($this->object->scaleRow($spatial), $min_max);
}
/**
* data provider for testScaleRow
*

View File

@ -316,20 +316,6 @@ class PMA_GIS_PolygonTest extends PMA_GIS_GeomTest
);
}
/**
* test scaleRow method
*
* @param string $spatial spatial data of a row
* @param array $min_max expected results
*
* @dataProvider providerForTestScaleRow
* @return nothing
*/
public function testScaleRow($spatial, $min_max)
{
$this->assertEquals($this->object->scaleRow($spatial), $min_max);
}
/**
* data provider for testScaleRow
*