Initial commit IQParts\Content

This commit is contained in:
2018-03-01 18:41:55 +01:00
commit 349fa9c003
23 changed files with 1535 additions and 0 deletions

24
test/AbstractTestCase.php Normal file
View 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;
}
}