HM\BackUpWordPress\Common_File_Backup_Engine_Tests::tearDown PHP Method

tearDown() public method

public tearDown ( )
    public function tearDown()
    {
        if (file_exists(Path::get_root() . '/exclude')) {
            chmod(Path::get_root() . '/exclude', 0755);
        }
        if (file_exists(Path::get_root() . '/test-data.txt')) {
            chmod(Path::get_root() . '/test-data.txt', 0644);
        }
        if (file_exists($this->hidden)) {
            unlink($this->hidden);
        }
        if (file_exists($this->symlink) || is_link($this->symlink)) {
            unlink($this->symlink);
        }
        $this->cleanup_test_data();
    }