2017 © Pedro Peláez
 

library phpunit-tmp-dir

Wrapper around VFS for easier creation temporary directory

image

havramar/phpunit-tmp-dir

Wrapper around VFS for easier creation temporary directory

  • Thursday, January 15, 2015
  • by havramar
  • Repository
  • 1 Watchers
  • 0 Stars
  • 180 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 17 % Grown

The README.md

phpunit-tmp-dir

Wrapper around vfsStream for easier creation temporary directories in PhpUnit tests., (*1)

Build Status SensioLabsInsight, (*2)

Why

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

How to run

  1. Get composer.
  2. composer require havramar/phpunit-tmp-dir:dev-master
  3. Create example file:, (*4)

    <?php
    
    require_once 'vendor/autoload.php';
    
    $path = \PhpunitTempDir\Helper::createTempDir();
    
    // do whatever you want inside $path (mkdir, touch etc),
    // when script exits, everything is gone as all is happening in memory
    

The Versions

15/01 2015

dev-master

9999999-dev

Wrapper around VFS for easier creation temporary directory

  Sources   Download

MIT

The Requires

  • mikey179/vfsstream v1.2.0

 

The Development Requires

phpunit filesystem helper