Author: Derick Rethans
Date: 2006-01-12 18:08:44 +0100 (Thu, 12 Jan 2006)
New Revision: 1800

Log:
- Go with new base exceptions.

Modified:
   packages/UserInput/trunk/src/input_form.php
   packages/UserInput/trunk/tests/tools_test.php

Modified: packages/UserInput/trunk/src/input_form.php
===================================================================
--- packages/UserInput/trunk/src/input_form.php 2006-01-12 17:06:23 UTC (rev 
1799)
+++ packages/UserInput/trunk/src/input_form.php 2006-01-12 17:08:44 UTC (rev 
1800)
@@ -389,7 +389,7 @@
      */
     public function __set( $propertyName, $newValue )
     {
-        throw new ezcBasePropertyReadOnlyException( $propertyName );
+        throw new ezcBasePropertyPermissionException( $propertyName, 
ezcBasePropertyPermissionException::READ );
     }
 
     /**

Modified: packages/UserInput/trunk/tests/tools_test.php
===================================================================
--- packages/UserInput/trunk/tests/tools_test.php       2006-01-12 17:06:23 UTC 
(rev 1799)
+++ packages/UserInput/trunk/tests/tools_test.php       2006-01-12 17:08:44 UTC 
(rev 1800)
@@ -131,7 +131,7 @@
             $obj->dummy = 'should not work';
             self::fail( "No exception, where we should have had one" );
         }
-        catch ( ezcBasePropertyReadOnlyException $e )
+        catch ( ezcBasePropertyPermissionException $e )
         {
             self::assertEquals( "The property <dummy> is read-only.", 
$e->getMessage() );
         }

-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to