# phpman > man > File::HomeDir::Test(3pm)

## NAME
    [File::HomeDir::Test](https://www.chedong.com/phpMan.php/perldoc/File%3A%3AHomeDir%3A%3ATest/markdown) - Prevent the accidental creation of user-owned files during testing

## SYNOPSIS
      use [Test::More](https://www.chedong.com/phpMan.php/perldoc/Test%3A%3AMore/markdown) test => 1;
      use [File::HomeDir::Test](https://www.chedong.com/phpMan.php/perldoc/File%3A%3AHomeDir%3A%3ATest/markdown);
      use [File::HomeDir](https://www.chedong.com/phpMan.php/perldoc/File%3A%3AHomeDir/markdown);

## DESCRIPTION
    [File::HomeDir::Test](https://www.chedong.com/phpMan.php/perldoc/File%3A%3AHomeDir%3A%3ATest/markdown) is a [File::HomeDir](https://www.chedong.com/phpMan.php/perldoc/File%3A%3AHomeDir/markdown) driver intended for use in the test scripts of modules or
    applications that write files into user-owned directories.

    It is designed to prevent the pollution of user directories with files that are not part of the
    application install itself, but were created during testing. These files can leak state
    information from the tests into the run-time usage of an application, and on Unix systems also
    prevents tests (which may be executed as root via sudo) from writing files which cannot later be
    modified or removed by the regular user.

## SUPPORT
    See the support section of the main [File::HomeDir](https://www.chedong.com/phpMan.php/perldoc/File%3A%3AHomeDir/markdown) documentation.

## AUTHOR
    Adam Kennedy <<adamk@cpan.org>>

## COPYRIGHT
    Copyright 2005 - 2011 Adam Kennedy.

    Copyright 2017 - 2020 Jens Rehsack

    This program is free software; you can redistribute it and/or modify it under the same terms as
    Perl itself.

    The full text of the license can be found in the LICENSE file included with this module.

