✨feature: Initial MVP
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
// phpcs:disable PEAR.Commenting.FileComment,PEAR.Commenting.ClassComment
|
||||
|
||||
/**
|
||||
* PHPUnit bootstrap.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
define('IKB_TEST_MODE', true);
|
||||
|
||||
require_once dirname(__DIR__) . '/bootstrap.php';
|
||||
|
||||
spl_autoload_register(
|
||||
static function (string $class): void {
|
||||
$prefix = 'Tests\\';
|
||||
|
||||
if (!str_starts_with($class, $prefix)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$relativeClass = substr($class, strlen($prefix));
|
||||
$file = __DIR__ . '/' . str_replace('\\', '/', $relativeClass) . '.php';
|
||||
|
||||
if (is_file($file)) {
|
||||
include_once $file;
|
||||
}
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user