aboutsummaryrefslogblamecommitdiffstats
path: root/library/kzykhys/git/test/PHPGit/BaseTestCase.php
blob: df69b216e73a01ff6bc1b73c4c3924c6d7227a86 (plain) (tree)
































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

}