field('bonus_id,usable_time as usabletm')->where($cond)->select(); } public function testCondition() { $mod_type = Model('bonus_type'); // $condition = array('sender_id' => 36490, 'relayer_id' => 36490, '_op' => 'or'); // $condition = array($condition,array('make_type' => 0),'_op' => 'and'); //$condition = "(sender_id=36490 or relayer_id => 36490) and (make_type = 0)"; $member_id = 36490; $cond = array(); $cond['sender_id|repayer_id'] = array('_multi'=>true,$member_id,36491); $cond['make_type'] = 0; $mod_type->where($cond)->select(); } private function xxx() { $bar = new bar(); } public function testDestruct() { echo __FUNCTION__ . " begin \n"; $this->xxx(); $bar = new bar(); echo __FUNCTION__ . " end \n"; } public function testBrands() { $brands = brand_helper::brandex(); } public static function tearDownAfterClass() { } }