PHPackages                             havramar/phpunit-tmp-dir - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. havramar/phpunit-tmp-dir

ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

havramar/phpunit-tmp-dir
========================

Wrapper around VFS for easier creation temporary directory

03052PHP

Since Jan 14Pushed 11y ago1 watchersCompare

[ Source](https://github.com/havramar/phpunit-tmp-dir)[ Packagist](https://packagist.org/packages/havramar/phpunit-tmp-dir)[ RSS](/packages/havramar-phpunit-tmp-dir/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (2)

phpunit-tmp-dir
===============

[](#phpunit-tmp-dir)

Wrapper around [vfsStream](https://github.com/mikey179/vfsStream) for easier creation temporary directories in [PhpUnit](http://phpunit.de/) tests.

[![Build Status](https://camo.githubusercontent.com/1eab2df87a15b55755edff492fec78737fe6a111704d51bb48db30a9903f7a84/68747470733a2f2f7472617669732d63692e6f72672f68617672616d61722f706870756e69742d746d702d6469722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/havramar/phpunit-tmp-dir)[![SensioLabsInsight](https://camo.githubusercontent.com/c53ed0f36896033540bcff4c5875d909dff32245f0d8128ecf26386b3cb955f1/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35666239323732622d396232342d343737622d626433612d3861633963346562383834342f6d696e692e706e67)](https://insight.sensiolabs.com/projects/5fb9272b-9b24-477b-bd3a-8ac9c4eb8844)

Why
---

[](#why)

Needed extremely simple way of creating temporary folder, whose content is deleted when tests are finished.

How to run
----------

[](#how-to-run)

1. Get [composer](https://getcomposer.org/).
2. `composer require havramar/phpunit-tmp-dir:dev-master`
3. Create example file:

```
