Initial commit IQParts\Content
This commit is contained in:
24
test/AbstractTestCase.php
Normal file
24
test/AbstractTestCase.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace IQParts\ContentTest;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Class AbstractTestCase
|
||||
* @package IQParts\ContentTest
|
||||
*/
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user