Commit 2db52872 authored by zYne's avatar zYne

tests for standard filter

parent f3488d17
......@@ -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();
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment