/**
  * Create test for the GFPDF_InstallUpdater::pdf_extended_copy_directory() function
  * @group install-update
  */
 public function test_move_folder_system()
 {
     $this->setup_move_folder_test();
     /*
      * Setup and run our moving folder function 
      */
     $move_to = ABSPATH . 'tmp2/';
     GFPDF_InstallUpdater::pdf_extended_copy_directory($this->tmp, $move_to);
     /*
      * Run our first test
      */
     $this->verify_folder_structure($move_to);
     /*
      * Override the existing folder and test for newly added file 
      */
     touch($this->tmp . 'extrafile');
     GFPDF_InstallUpdater::pdf_extended_copy_directory($this->tmp, $move_to, true, true);
     /* Run our second test batch */
     $this->verify_folder_structure($move_to);
     $this->assertTrue(is_file($move_to . 'extrafile'));
     unlink($move_to . 'extrafile');
     unlink($this->tmp . 'extrafile');
     /*
      * Delete the source directory when doing the move 
      */
     GFPDF_InstallUpdater::pdf_extended_copy_directory($this->tmp, $move_to, true, true, true);
     $this->verify_folder_structure($move_to);
     $this->assertFalse(is_dir($this->tmp));
     $this->setup_move_folder_test();
     /*
      * Create permissions problems that prevent the files being moved 
      */
     $move_to = '/tmp2';
     $this->assertFalse(GFPDF_InstallUpdater::pdf_extended_copy_directory($this->tmp, $move_to));
 }