summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-04-26 12:57:12 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-04-26 12:57:12 +0000
commitfc7b75257c43cc6ddf7db3ed0d3f3da08ffc4e40 (patch)
treecf3d186d903730e78ea009a3e3c226c48faaaf69 /tests
parentf084d967acf848d63e35831e840d267803643643 (diff)
downloadzetacomponents-graph-fc7b75257c43cc6ddf7db3ed0d3f3da08ffc4e40.zip
zetacomponents-graph-fc7b75257c43cc6ddf7db3ed0d3f3da08ffc4e40.tar.gz
- Added tests for exception on unsupported renderer
Diffstat (limited to 'tests')
-rw-r--r--tests/radar_chart.php21
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';
OpenPOWER on IntegriCloud