Add file info in testing function in test.php

Add getFileInfo function in file_model.php