diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-05-10 07:10:39 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-05-10 07:10:39 +0000 |
commit | c028b1e38e72a7ec4f67bfe7ac2b457cfbbeb167 (patch) | |
tree | 45895642b21a5d6c66dcb4f736f3b290e5d19dc0 /tests/line_test.php | |
parent | 897f5b6fbedba0716cf7488cf8abb51ab53b77b4 (diff) | |
download | zetacomponents-graph-c028b1e38e72a7ec4f67bfe7ac2b457cfbbeb167.zip zetacomponents-graph-c028b1e38e72a7ec4f67bfe7ac2b457cfbbeb167.tar.gz |
- Added test for no data with line chart
Diffstat (limited to 'tests/line_test.php')
-rw-r--r-- | tests/line_test.php | 19 |
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.' ); + } } ?> |