From 2e4c83a97dc0d3a53598b4324b194e5d984167ce Mon Sep 17 00:00:00 2001 From: Kore Nordmann Date: Tue, 27 Nov 2007 12:08:49 +0000 Subject: - Also test for exception in getter --- tests/driver_options_test.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'tests') 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(); -- cgit v1.1