for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Spiral Framework.
*
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
declare(strict_types=1);
namespace Spiral\Tests\Framework;
use PHPUnit\Framework\TestCase;
use Spiral\Boot\Environment;
use Spiral\App\TestApp;
abstract class BaseTest extends TestCase
{
public function makeApp(array $env = []): TestApp
return TestApp::init([
'root' => __DIR__ . '/../..',
'app' => __DIR__ . '/../app',
'runtime' => sys_get_temp_dir() . '/spiral',
'cache' => sys_get_temp_dir() . '/spiral',
], new Environment($env), false);
}