diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-04-26 12:57:12 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-04-26 12:57:12 +0000 |
commit | fc7b75257c43cc6ddf7db3ed0d3f3da08ffc4e40 (patch) | |
tree | cf3d186d903730e78ea009a3e3c226c48faaaf69 | |
parent | f084d967acf848d63e35831e840d267803643643 (diff) | |
download | zetacomponents-graph-fc7b75257c43cc6ddf7db3ed0d3f3da08ffc4e40.zip zetacomponents-graph-fc7b75257c43cc6ddf7db3ed0d3f3da08ffc4e40.tar.gz |
- Added tests for exception on unsupported renderer
-rw-r--r-- | tests/radar_chart.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/radar_chart.php b/tests/radar_chart.php index 97f110f..9d80f17 100644 --- a/tests/radar_chart.php +++ b/tests/radar_chart.php @@ -227,6 +227,27 @@ class ezcGraphRadarChartTest extends ezcGraphTestCase ); } + public function testRadarRendererFailure() + { + $filename = $this->tempDir . __FUNCTION__ . '.svg'; + + $chart = new ezcGraphRadarChart(); + $chart->palette = new ezcGraphPaletteTango(); + + $chart->data['sample'] = new ezcGraphArrayDataSet( $this->getRandomData( 6 ) ); + + try + { + $chart->renderer = new ezcGraphRenderer3d(); + } + catch ( ezcBaseValueException $e ) + { + return true; + } + + $this->fail( 'Expected ezcBasePropertyValueException.' ); + } + public function testRadarMultiple() { $filename = $this->tempDir . __FUNCTION__ . '.svg'; |