summaryrefslogtreecommitdiffstats
path: root/tests/chart_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-11-30 09:29:35 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-11-30 09:29:35 +0000
commit5ced6d5c25202717ef3ec1a811cffba6b44bcb79 (patch)
tree9e809048dd794a6d7d95497fe60f11bbcd77cc88 /tests/chart_test.php
parenta624a3e637586a8efc327cd5e8e6021bf3546c00 (diff)
downloadzetacomponents-graph-5ced6d5c25202717ef3ec1a811cffba6b44bcb79.zip
zetacomponents-graph-5ced6d5c25202717ef3ec1a811cffba6b44bcb79.tar.gz
- Fixed bug #9568: (Devision by zero warning)
Diffstat (limited to 'tests/chart_test.php')
-rw-r--r--tests/chart_test.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/chart_test.php b/tests/chart_test.php
index 803eb13..796498d 100644
--- a/tests/chart_test.php
+++ b/tests/chart_test.php
@@ -182,5 +182,31 @@ class ezcGraphChartTest extends ezcTestCase
$this->fail( 'Expected ezcGraphInvalidDriverException' );
}
+
+ public function testPieChartWithoutData()
+ {
+ try
+ {
+ $pieChart = new ezcGraphPieChart();
+ $pieChart->render( 400, 200 );
+ }
+ catch ( ezcGraphNoDataException $e )
+ {
+ return true;
+ }
+ }
+
+ public function testBarChartWithoutData()
+ {
+ try
+ {
+ $pieChart = new ezcGraphPieChart();
+ $pieChart->render( 400, 200 );
+ }
+ catch ( ezcGraphNoDataException $e )
+ {
+ return true;
+ }
+ }
}
?>
OpenPOWER on IntegriCloud