summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-05-10 07:10:39 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-05-10 07:10:39 +0000
commitc028b1e38e72a7ec4f67bfe7ac2b457cfbbeb167 (patch)
tree45895642b21a5d6c66dcb4f736f3b290e5d19dc0 /tests
parent897f5b6fbedba0716cf7488cf8abb51ab53b77b4 (diff)
downloadzetacomponents-graph-c028b1e38e72a7ec4f67bfe7ac2b457cfbbeb167.zip
zetacomponents-graph-c028b1e38e72a7ec4f67bfe7ac2b457cfbbeb167.tar.gz
- Added test for no data with line chart
Diffstat (limited to 'tests')
-rw-r--r--tests/line_test.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/line_test.php b/tests/line_test.php
index 6a5d67a..3bbf463 100644
--- a/tests/line_test.php
+++ b/tests/line_test.php
@@ -741,5 +741,24 @@ class ezcGraphLineChartTest extends ezcTestCase
$this->fail( 'Expected ezcBaseValueException.' );
}
+
+ public function testLineChartNoDataFailure()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.svg';
+
+ $chart = new ezcGraphLineChart();
+ $chart->palette = new ezcGraphPaletteTango();
+
+ try
+ {
+ $chart->render( 500, 200, $filename );
+ }
+ catch ( ezcGraphNoDataException $e )
+ {
+ return true;
+ }
+
+ $this->fail( 'Expected ezcGraphNoDataException.' );
+ }
}
?>
OpenPOWER on IntegriCloud