diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-11-27 11:39:59 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-11-27 11:39:59 +0000 |
commit | 6c55988b401c47a5552e5aa3f11b459dde739306 (patch) | |
tree | 4475a7e1ff5b201711c9099baa22985d1f6ed340 /tests/chart_test.php | |
parent | e5a027b7694db1836398c6be589972ae8b46c153 (diff) | |
download | zetacomponents-graph-6c55988b401c47a5552e5aa3f11b459dde739306.zip zetacomponents-graph-6c55988b401c47a5552e5aa3f11b459dde739306.tar.gz |
- Test for unknown elements
Diffstat (limited to 'tests/chart_test.php')
-rw-r--r-- | tests/chart_test.php | 22 |
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() |