From 2db528729b98ce4ff16a25b3773362990fc05c2b Mon Sep 17 00:00:00 2001 From: zYne Date: Fri, 21 Sep 2007 13:16:23 +0000 Subject: [PATCH] tests for standard filter --- tests/Record/FilterTestCase.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/Record/FilterTestCase.php b/tests/Record/FilterTestCase.php index 426910a60..60928b05e 100644 --- a/tests/Record/FilterTestCase.php +++ b/tests/Record/FilterTestCase.php @@ -32,4 +32,28 @@ */ class Doctrine_Record_Filter_TestCase extends Doctrine_UnitTestCase { + public function testStandardFiltersThrowsExceptionWhenGettingUnknownProperties() + { + $u = new User(); + + try { + $u->unknown; + + $this->fail(); + } catch (Doctrine_Record_Exception $e) { + $this->pass(); + } + } + public function testStandardFiltersThrowsExceptionWhenSettingUnknownProperties() + { + $u = new User(); + + try { + $u->unknown = 'something'; + + $this->fail(); + } catch (Doctrine_Record_Exception $e) { + $this->pass(); + } + } }