diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-09-14 11:29:32 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-09-14 11:29:32 +0000 |
commit | 692ac45ddcd5240c22dd0ad67bf381d6b24fc86c (patch) | |
tree | 45009359d56f32548a0f3c8271d0a7545e072e37 /tests/renderer_2d_test.php | |
parent | 32b94070bd2bc02d9d937982e2785a6c33854b2b (diff) | |
download | zetacomponents-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.php | 18 |
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() |