This repository has been archived on 2024-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
core/library/kzykhys/git/test/PHPGit/BaseTestCase.php

33 lines
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);
}
}