public function setUp()
 {
     parent::setUp();
     $this->file_to_delete = $this->cache_dir . '/rest_attachement_temp_101_XyKoe';
     $ten_days_ago = $_SERVER['REQUEST_TIME'] - 10 * 3600 * 24;
     stub($this->dao)->searchTemporaryFilesOlderThan()->returnsDar(array('id' => 1, 'filename' => 'mona_lisa.png', 'tempname' => 'XyKoe', 'description' => 'le smile', 'last_modified' => $ten_days_ago, 'offset' => 1, 'submitted_by' => 101, 'filesize' => 12345, 'filetype' => 'image/png'));
     touch($this->file_to_delete);
 }
 public function setUp()
 {
     parent::setUp();
     ForgeConfig::set('sys_max_size_upload', 10);
     $this->empty_file = new Tracker_Artifact_Attachment_TemporaryFile(1, 'jette_lit.png', 'random_tmpname', 'Mugshot', 0, 0, 101, 0, 'image/png');
     touch($this->cache_dir . '/rest_attachement_temp_101_' . $this->empty_file->getTemporaryName());
     $this->wrong_path_file = new Tracker_Artifact_Attachment_TemporaryFile(1, 'jette_lit.png', 'wrong_path', 'Mugshot', 0, 0, 101, 0, 'image/png');
 }