public function testValidId() { $a = array(); $a[] = self::$db->load(null); $a[] = self::$db->load(''); $a[] = self::$db->load(0); $ex = array(null, null, null); $this->assertEquals($ex, $a); }
/** * Save index */ public function store() { $this->sort(); // keep map sorted by key $this->db->save('_' . $this->name . '_index', array('name' => $this->name, 'type' => 'index', 'map' => $this->map, 'inverse' => $this->inverse)); }