mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
33 lines
571 B
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);
|
||
|
}
|
||
|
|
||
|
}
|