1
0
mirror of synced 2025-02-20 06:03:15 +03:00

tests for standard filter

This commit is contained in:
zYne 2007-09-21 13:16:23 +00:00
parent f3488d17a0
commit 2db528729b

View File

@ -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();
}
}
}