Take common code to PMA_GIS_GeomTest class
This commit is contained in:
parent
98a770b415
commit
361544ecf7
@ -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);
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -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
|
||||
*
|
||||
|
||||
@ -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
|
||||
*
|
||||
|
||||
@ -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
|
||||
*
|
||||
|
||||
@ -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
|
||||
*
|
||||
|
||||
@ -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
|
||||
*
|
||||
|
||||
@ -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
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user