register PHP unit testcases codeigniter refactor