diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2008-07-18 09:56:33 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2008-07-18 09:56:33 +0000 |
commit | 8e7c90a3ce6ffe407e83d7333f57f225f0c9a9a9 (patch) | |
tree | 171a45e3a9a21c3ecb4c80255884641c49dfb37c /tests/driver_gd_test.php | |
parent | 663755b520265cb1cc4bc3edf30370f54f16c86e (diff) | |
download | zetacomponents-graph-8e7c90a3ce6ffe407e83d7333f57f225f0c9a9a9.zip zetacomponents-graph-8e7c90a3ce6ffe407e83d7333f57f225f0c9a9a9.tar.gz |
- Fixed issue #13361: Provided workaround for ext/GD bug:
http://bugs.php.net/45552
Diffstat (limited to 'tests/driver_gd_test.php')
-rw-r--r-- | tests/driver_gd_test.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/driver_gd_test.php b/tests/driver_gd_test.php index e01193a..256cbc5 100644 --- a/tests/driver_gd_test.php +++ b/tests/driver_gd_test.php @@ -389,6 +389,41 @@ class ezcGraphGdDriverTest extends ezcTestImageCase ); } + public function testDrawCircleSectorAcuteVerySmallBug13361() + { + $filename = $this->tempDir . __FUNCTION__ . '.png'; + + $return = $this->driver->drawCircleSector( + new ezcGraphCoordinate( 100, 50 ), + 80, + 40, + 30, + 30.1, + ezcGraphColor::fromHex( '#3465A4' ) + ); + + $this->driver->render( $filename ); + + $this->assertTrue( + file_exists( $filename ), + 'No image was generated.' + ); + + $this->assertImageSimilar( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.png', + 'Image does not look as expected.', + 2000 + ); + + $this->assertEquals( + $return, + array(), + 'Expected empty point array as return value.', + 1. + ); + } + public function testDrawCircleSectorAcuteNonFilled() { $filename = $this->tempDir . __FUNCTION__ . '.png'; |