summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-11-27 11:39:59 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-11-27 11:39:59 +0000
commit6c55988b401c47a5552e5aa3f11b459dde739306 (patch)
tree4475a7e1ff5b201711c9099baa22985d1f6ed340
parente5a027b7694db1836398c6be589972ae8b46c153 (diff)
downloadzetacomponents-graph-6c55988b401c47a5552e5aa3f11b459dde739306.zip
zetacomponents-graph-6c55988b401c47a5552e5aa3f11b459dde739306.tar.gz
- Test for unknown elements
-rw-r--r--tests/chart_test.php22
1 files changed, 21 insertions, 1 deletions
diff --git a/tests/chart_test.php b/tests/chart_test.php
index 6484aac..754d78e 100644
--- a/tests/chart_test.php
+++ b/tests/chart_test.php
@@ -103,7 +103,23 @@ class ezcGraphChartTest extends ezcGraphTestCase
return true;
}
- $this->fail( 'Expected ezcGraphInvalidRendererException' );
+ $this->fail( 'Expected ezcBaseValueException' );
+ }
+
+ public function testAccessUnknownElement()
+ {
+ try
+ {
+ $pieChart = new ezcGraphPieChart();
+ //Read
+ $pieChart->unknownElement;
+ }
+ catch ( ezcGraphNoSuchElementException $e )
+ {
+ return true;
+ }
+
+ $this->fail( 'Expected ezcGraphNoSuchElementException' );
}
public function testSetDriver()
@@ -149,6 +165,8 @@ class ezcGraphChartTest extends ezcGraphTestCase
{
return true;
}
+
+ $this->fail( 'Expected ezcGraphNoDataException.' );
}
public function testBarChartWithoutData()
@@ -162,6 +180,8 @@ class ezcGraphChartTest extends ezcGraphTestCase
{
return true;
}
+
+ $this->fail( 'Expected ezcGraphNoDataException.' );
}
public function testBarChartWithSingleDataPoint()
OpenPOWER on IntegriCloud