summaryrefslogtreecommitdiffstats
path: root/tests/renderer_2d_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-09-14 11:29:32 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-09-14 11:29:32 +0000
commit692ac45ddcd5240c22dd0ad67bf381d6b24fc86c (patch)
tree45009359d56f32548a0f3c8271d0a7545e072e37 /tests/renderer_2d_test.php
parent32b94070bd2bc02d9d937982e2785a6c33854b2b (diff)
downloadzetacomponents-graph-692ac45ddcd5240c22dd0ad67bf381d6b24fc86c.zip
zetacomponents-graph-692ac45ddcd5240c22dd0ad67bf381d6b24fc86c.tar.gz
- Fixed tests cases
Diffstat (limited to 'tests/renderer_2d_test.php')
-rw-r--r--tests/renderer_2d_test.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/tests/renderer_2d_test.php b/tests/renderer_2d_test.php
index ad1e597..6e92989 100644
--- a/tests/renderer_2d_test.php
+++ b/tests/renderer_2d_test.php
@@ -482,8 +482,8 @@ class ezcGraphRenderer2dTest extends ezcTestCase
->expects( $this->at( 2 ) )
->method( 'drawLine' )
->with(
- $this->equalTo( new ezcGraphCoordinate( 40., 160. ), 1. ),
- $this->equalTo( new ezcGraphCoordinate( 280., 60. ), 1. ),
+ $this->equalTo( new ezcGraphCoordinate( 40., 40. ), 1. ),
+ $this->equalTo( new ezcGraphCoordinate( 280., 140. ), 1. ),
$this->equalTo( ezcGraphColor::fromHex( '#FF0000' ) ),
$this->equalTo( 1 )
);
@@ -618,8 +618,8 @@ class ezcGraphRenderer2dTest extends ezcTestCase
->expects( $this->at( 2 ) )
->method( 'drawLine' )
->with(
- $this->equalTo( new ezcGraphCoordinate( 40., 160. ), 1. ),
- $this->equalTo( new ezcGraphCoordinate( 280., 60. ), 1. ),
+ $this->equalTo( new ezcGraphCoordinate( 40., 40. ), 1. ),
+ $this->equalTo( new ezcGraphCoordinate( 280., 140. ), 1. ),
$this->equalTo( ezcGraphColor::fromHex( '#FF0000' ) ),
$this->equalTo( 1 )
);
@@ -627,7 +627,7 @@ class ezcGraphRenderer2dTest extends ezcTestCase
->expects( $this->at( 3 ) )
->method( 'drawCircle' )
->with(
- $this->equalTo( new ezcGraphCoordinate( 280, 60 ) ),
+ $this->equalTo( new ezcGraphCoordinate( 280, 140 ) ),
$this->equalTo( 6 ),
$this->equalTo( 6 ),
$this->equalTo( ezcGraphColor::fromHex( '#FF0000' ) ),
@@ -647,6 +647,7 @@ class ezcGraphRenderer2dTest extends ezcTestCase
ezcGraphColor::fromHex( '#FF0000DD' ),
.5
);
+ $this->renderer->render( 400, 200, $this->tempDir . __METHOD__ . 'svg' );
}
public function testRenderFilledDataLineWithSymbolInDifferentColorAndCustomSize()
@@ -679,8 +680,8 @@ class ezcGraphRenderer2dTest extends ezcTestCase
->expects( $this->at( 2 ) )
->method( 'drawLine' )
->with(
- $this->equalTo( new ezcGraphCoordinate( 40., 160. ), 1. ),
- $this->equalTo( new ezcGraphCoordinate( 280., 60. ), 1. ),
+ $this->equalTo( new ezcGraphCoordinate( 40., 40. ), 1. ),
+ $this->equalTo( new ezcGraphCoordinate( 280., 140. ), 1. ),
$this->equalTo( ezcGraphColor::fromHex( '#FF0000' ) ),
$this->equalTo( 1 )
);
@@ -688,7 +689,7 @@ class ezcGraphRenderer2dTest extends ezcTestCase
->expects( $this->at( 3 ) )
->method( 'drawCircle' )
->with(
- $this->equalTo( new ezcGraphCoordinate( 280, 60 ) ),
+ $this->equalTo( new ezcGraphCoordinate( 280, 140 ) ),
$this->equalTo( 10 ),
$this->equalTo( 10 ),
$this->equalTo( ezcGraphColor::fromHex( '#00FF00' ) ),
@@ -710,6 +711,7 @@ class ezcGraphRenderer2dTest extends ezcTestCase
ezcGraphColor::fromHex( '#FF0000DD' ),
.5
);
+ $this->renderer->render( 400, 200, $this->tempDir . __METHOD__ . 'svg' );
}
public function testRenderBox()
OpenPOWER on IntegriCloud