示例#1
0
 public function itMovesTheFilesInSymlinkedRepo()
 {
     $file_orig_path = $this->symlink_repo . '/file1';
     $file_dest_path = $this->symlink_repo . '/file with spaces';
     file_put_contents($file_orig_path, 'bla');
     $git_exec = new Git_Exec($this->symlink_repo);
     $git_exec->add($file_orig_path);
     $git_exec->commit('bla');
     $git_exec->mv($file_orig_path, $file_dest_path);
     $git_exec->commit('rename');
     $this->assertFalse($git_exec->isThereAnythingToCommit());
     $this->assertFalse(file_exists($file_orig_path));
     $this->assertEqual(file_get_contents($file_dest_path), 'bla');
 }