Files
cache/test/AbstractTestCase.php

20 lines
464 B
PHP

<?php
namespace IQParts\CacheTest;
use PHPUnit\Framework\TestCase;
abstract class AbstractTestCase extends TestCase
{
public function getTmpDirectory()
{
$location = __DIR__ . '/../tmp';
if (!file_exists($location)) {
if (!mkdir($location)) {
throw new \RuntimeException('Could not create directory: ' . $location);
}
chmod($location, 0777);
}
return $location;
}
}