Add phpunit test to add all additions to smarty

This commit is contained in:
2024-12-27 10:30:27 +09:00
parent fd369a7115
commit 39bfcecd3f
9 changed files with 328 additions and 0 deletions

15
test/bootstrap.php Normal file
View File

@@ -0,0 +1,15 @@
<?php
$set = 0;
foreach (['', '/../..', '/..', '/../../src', '/../src'] as $src) {
if (is_file(dirname(__DIR__) . $src . '/vendor/autoload.php')) {
require dirname(__DIR__) . $src . '/vendor/autoload.php';
$set = 1;
break;
}
}
if (!$set) {
die("Cannot find /vendor/autoload.php in reference to: " . dirname(__DIR__) . "\n");
}
// __END__