name = rand(); $group->save(); // this save works try { $group->name = null; // now I change to an illegal value $group->save(); // this passes, but it shouldn't. My model is broken! // This is the normal state when the bug is not fixed. } catch (ORM_Validation_Exception $e) { // When this triggers, the bug is fixed. Find any references to ticket #2504 in the code // and update those accordingly $this->assert_true(false, "Bug #2504 has been fixed"); } } }