1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hubzilla_ynh.git synced 2024-09-03 19:26:21 +02:00
hubzilla_ynh/sources/library/kzykhys/git/test/PHPGit/BaseTestCase.php

33 lines
571 B
PHP
Raw Normal View History

<?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);
}
}