Author: kn
Date: Tue Nov 27 13:08:49 2007
New Revision: 6831

Log:
- Also test for exception in getter

Modified:
    trunk/Graph/tests/driver_options_test.php

Modified: trunk/Graph/tests/driver_options_test.php
==============================================================================
--- trunk/Graph/tests/driver_options_test.php [iso-8859-1] (original)
+++ trunk/Graph/tests/driver_options_test.php [iso-8859-1] Tue Nov 27 13:08:49 
2007
@@ -52,13 +52,29 @@
         $this->fail( 'Expected ezcBaseValueException.' );
     }
 
-    public function testDriverUnknownProperty()
+    public function testDriverSetUnknownProperty()
     {
         $driver = new ezcGraphSvgDriver();
 
         try
         {
             $driver->unknownProperty = false;
+        }
+        catch ( ezcBasePropertyNotFoundException $e )
+        {
+            return true;
+        }
+
+        $this->fail( 'Expected ezcBasePropertyNotFoundException.' );
+    }
+
+    public function testDriverGetUnknownProperty()
+    {
+        $driver = new ezcGraphSvgDriver();
+
+        try
+        {
+            $driver->unknownProperty;
         }
         catch ( ezcBasePropertyNotFoundException $e )
         {


-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to