/** * Enter description here... * * @param array $RecordSet * @return UserCollection */ private function doLoad($RecordSet) { $CommandCollection = new CommandCollection(); foreach ($RecordSet as $Row) { // i_ID, s_Name, s_Data, s_Execute, i_Device_ID, i_Right_ID $CommandCollection->add(new Command($Row['i_ID'], $Row['s_Name'], $Row['s_Data'], $Row['s_Execute'], $Row['i_Device_ID'])); } return $CommandCollection; }
public function testCount() { $this->assertEquals(1, $this->collection->count()); }