mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 08:15:39 +08:00
Refactor test structure and update paths for improved organization
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
use Psr\Log\LogLevel;
|
||||
|
||||
require_once __DIR__ . '/../src/globals/internal-env.php';
|
||||
require_once __DIR__ . '/mock/SPC_store.php';
|
||||
require_once __DIR__ . '/../src/bootstrap.php';
|
||||
\StaticPHP\Registry\Registry::checkLoadedRegistries();
|
||||
|
||||
\SPC\util\AttributeMapper::init();
|
||||
|
||||
$log_dir = SPC_LOGS_DIR;
|
||||
if (!file_exists($log_dir)) {
|
||||
mkdir($log_dir, 0755, true);
|
||||
}
|
||||
logger()->setLevel(LogLevel::ERROR);
|
||||
|
||||
Reference in New Issue
Block a user