示例#1
0
 /**
  *  this is just to make sure there are no problems raised when the criteria has nothing set
  *  
  *  I noticed a NOTICE was getting raised when doing this using the mysql interface
  *      
  *  @since  1-6-11      
  */
 public function testGetWithNoWhere()
 {
     $db = $this->getDb();
     $table = $this->getTable(__FUNCTION__);
     $_id_list = $this->insert($table, 6);
     $limit = 5;
     $where_criteria = new MingoCriteria();
     $where_criteria->setBounds($limit, 0);
     $list = $db->get($table, $where_criteria);
     $this->assertInternalType('array', $list);
     $this->assertLessThanOrEqual($limit, count($list));
 }