summaryrefslogtreecommitdiffstats
path: root/tests/driver_options_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-11-27 12:08:49 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-11-27 12:08:49 +0000
commit2e4c83a97dc0d3a53598b4324b194e5d984167ce (patch)
tree17c70cb72348cf99d178e16fff6382aa160019eb /tests/driver_options_test.php
parent97fbff9cc4dbaece41a60bf63f4876ba030eef25 (diff)
downloadzetacomponents-graph-2e4c83a97dc0d3a53598b4324b194e5d984167ce.zip
zetacomponents-graph-2e4c83a97dc0d3a53598b4324b194e5d984167ce.tar.gz
- Also test for exception in getter
Diffstat (limited to 'tests/driver_options_test.php')
-rw-r--r--tests/driver_options_test.php18
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();
OpenPOWER on IntegriCloud