streams/vendor/kzykhys/git/test/PHPGit/BaseTestCase.php
2019-04-16 14:51:27 +10:00

33 lines
No EOL
571 B
PHP

<?php
use Symfony\Component\Filesystem\Filesystem;
/**
* @author Kazuyuki Hayashi <hayashi@siance.co.jp>
*/
abstract class BaseTestCase extends PHPUnit_Framework_TestCase
{
/**
* @var string
*/
protected $directory;
/**
* {@inheritdoc}
*/
public function setUp()
{
$this->directory = __DIR__.'/../../build/' . strtolower(get_class($this));
}
/**
* {@inheritdoc}
*/
public function tearDown()
{
$filesystem = new Filesystem();
$filesystem->remove($this->directory);
}
}