Skip to content

Commit

Permalink
fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
ruleant committed Aug 30, 2012
1 parent 112f8b9 commit fd2118f
Showing 1 changed file with 44 additions and 31 deletions.
75 changes: 44 additions & 31 deletions test/classes/gis/PMA_GIS_Linestring_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,17 +172,20 @@ public function providerForTestScaleRow()
* @param type $image
* @param type $output
*
*@dataProvider providerForPrepareRowAsPng
* @dataProvider providerForPrepareRowAsPng
* @return void
*/
public function testPrepareRowAsPng($spatial, $label, $line_color, $scale_data, $image, $output)
{

$return = $this->object->prepareRowAsPng($spatial, $label, $line_color, $scale_data, $image);
public function testPrepareRowAsPng($spatial, $label, $line_color,
$scale_data, $image, $output
) {
$return = $this->object->prepareRowAsPng(
$spatial, $label, $line_color, $scale_data, $image
);
$this->assertTrue(true);
}

public function providerForPrepareRowAsPng(){

public function providerForPrepareRowAsPng()
{
return array(
array(
'LINESTRING(12 35,48 75,69 23,25 45,14 53,35 78)',
Expand All @@ -194,10 +197,9 @@ public function providerForPrepareRowAsPng(){
'scale' => 2,
'height' => 150
),
imagecreatetruecolor('120','150'),
imagecreatetruecolor('120', '150'),
''
)

);
}

Expand All @@ -209,17 +211,20 @@ public function providerForPrepareRowAsPng(){
* @param type $scale_data
* @param type $pdf
*
*@dataProvider providerForPrepareRowAsPdf
* @dataProvider providerForPrepareRowAsPdf
* @return void
*/
public function testPrepareRowAsPdf($spatial, $label, $line_color, $scale_data, $pdf)
{

$return = $this->object->prepareRowAsPdf($spatial, $label, $line_color, $scale_data, $pdf);
public function testPrepareRowAsPdf($spatial, $label, $line_color,
$scale_data, $pdf
) {
$return = $this->object->prepareRowAsPdf(
$spatial, $label, $line_color, $scale_data, $pdf
);
$this->assertTrue($return instanceof TCPDF);
}

public function providerForPrepareRowAsPdf(){

public function providerForPrepareRowAsPdf()
{
return array(
array(
'LINESTRING(12 35,48 75,69 23,25 45,14 53,35 78)',
Expand All @@ -244,18 +249,20 @@ public function providerForPrepareRowAsPdf(){
* @param type $scale_data
* @param type $output
*
*@dataProvider providerForPrepareRowAsSvg
* @dataProvider providerForPrepareRowAsSvg
* @return void
*/
public function testPrepareRowAsSvg($spatial, $label, $line_color, $scale_data, $output)
{

$string = $this->object->prepareRowAsSvg($spatial, $label, $line_color, $scale_data);
public function testPrepareRowAsSvg($spatial, $label, $line_color,
$scale_data, $output
) {
$string = $this->object->prepareRowAsSvg(
$spatial, $label, $line_color, $scale_data
);
$this->assertEquals(1, preg_match($output, $string));
//$this->assertEquals($this->object->prepareRowAsSvg($spatial, $label, $line_color, $scale_data) , $output);
}

public function providerForPrepareRowAsSvg(){

public function providerForPrepareRowAsSvg()
{
return array(
array(
'LINESTRING(12 35,48 75,69 23,25 45,14 53,35 78)',
Expand All @@ -281,16 +288,22 @@ public function providerForPrepareRowAsSvg(){
* @param type $scale_data
* @param type $output
*
*@dataProvider providerForPrepareRowAsOl
* @dataProvider providerForPrepareRowAsOl
* @return void
*/
public function testPrepareRowAsOl($spatial, $srid, $label, $line_color, $scale_data, $output)
{

$this->assertEquals($this->object->prepareRowAsOl($spatial, $srid, $label, $line_color, $scale_data) , $output);
public function testPrepareRowAsOl($spatial, $srid, $label,
$line_color, $scale_data, $output
) {
$this->assertEquals(
$this->object->prepareRowAsOl(
$spatial, $srid, $label, $line_color, $scale_data
),
$output
);
}

public function providerForPrepareRowAsOl(){

public function providerForPrepareRowAsOl()
{
return array(
array(
'LINESTRING(12 35,48 75,69 23,25 45,14 53,35 78)',
Expand Down

0 comments on commit fd2118f

Please sign in to comment.