public function testEmployeeInsert()
 {
     $emp = new Employee();
     $emp->setEmpName("Emp1");
     $emp->setDob(new DateTime('now'));
     $emp->setGender('M');
     $emp->setUserName("user1");
     $emp->setPassword("1234");
     $emp->setRole("Admin");
     $emp->setMobileNumber("902321321");
     assert($this->dao->insertEmployee($emp) == true, "Employee Insertion");
 }
 private function create_employee($row)
 {
     $obj = new Employee();
     $obj->setEMPID($row["EmpId"]);
     $obj->setEmpName($row["EmpName"]);
     $obj->setDob(new \DateTime($row["dob"]));
     $obj->setGender($row["gender"]);
     $obj->setUsername($row["userName"]);
     $obj->setPassword($row["password"]);
     $obj->setRole($row["role"]);
     $obj->setMobileNumber($row["mobileNumber"]);
     return $obj;
 }