Author: Tobias Schlitt Date: 2007-02-19 11:33:29 +0100 (Mon, 19 Feb 2007) New Revision: 4666
Log: - Added another test for property access. Modified: trunk/PersistentObject/tests/many_to_one_relation_test.php Modified: trunk/PersistentObject/tests/many_to_one_relation_test.php =================================================================== --- trunk/PersistentObject/tests/many_to_one_relation_test.php 2007-02-19 10:32:56 UTC (rev 4665) +++ trunk/PersistentObject/tests/many_to_one_relation_test.php 2007-02-19 10:33:29 UTC (rev 4666) @@ -149,8 +149,17 @@ try { + $relation->reverse = false; + $this->fail( "Exception not thrown on set access to ezcPersistentManyToOneRelation->reverse." ); + } + catch ( ezcBasePropertyPermissionException $e ) + { + } + + try + { $relation->reverse = array(); - $this->fail( "Exception not thrown on invalid value for ezcPersistentManyToOneRelation->reverse." ); + $this->fail( "Exception not thrown on set access to ezcPersistentManyToOneRelation->reverse." ); } catch ( ezcBasePropertyPermissionException $e ) { -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components