diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-11-27 12:08:49 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-11-27 12:08:49 +0000 |
commit | 2e4c83a97dc0d3a53598b4324b194e5d984167ce (patch) | |
tree | 17c70cb72348cf99d178e16fff6382aa160019eb /tests | |
parent | 97fbff9cc4dbaece41a60bf63f4876ba030eef25 (diff) | |
download | zetacomponents-graph-2e4c83a97dc0d3a53598b4324b194e5d984167ce.zip zetacomponents-graph-2e4c83a97dc0d3a53598b4324b194e5d984167ce.tar.gz |
- Also test for exception in getter
Diffstat (limited to 'tests')
-rw-r--r-- | tests/driver_options_test.php | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/driver_options_test.php b/tests/driver_options_test.php index 2e3b2a1..8bce574 100644 --- a/tests/driver_options_test.php +++ b/tests/driver_options_test.php @@ -52,7 +52,7 @@ class ezcGraphDriverOptionsTest extends ezcTestImageCase $this->fail( 'Expected ezcBaseValueException.' ); } - public function testDriverUnknownProperty() + public function testDriverSetUnknownProperty() { $driver = new ezcGraphSvgDriver(); @@ -68,6 +68,22 @@ class ezcGraphDriverOptionsTest extends ezcTestImageCase $this->fail( 'Expected ezcBasePropertyNotFoundException.' ); } + public function testDriverGetUnknownProperty() + { + $driver = new ezcGraphSvgDriver(); + + try + { + $driver->unknownProperty; + } + catch ( ezcBasePropertyNotFoundException $e ) + { + return true; + } + + $this->fail( 'Expected ezcBasePropertyNotFoundException.' ); + } + public function testDriverOptionsPropertyWidth() { $options = new ezcGraphSvgDriverOptions(); |