複数ネームスペースを可能に

This commit is contained in:
2026-02-27 03:15:17 +09:00
parent b723230818
commit a1bd29cff6
32 changed files with 95 additions and 73 deletions

View File

@@ -8,15 +8,17 @@ if (!CURL_ENABLED) define('ACTIVITYPUB_ENABLED', false);
mb_internal_encoding('UTF-8');
header('Content-Type: text/plain; charset=UTF-8');
$testDir = ROOT.'/src/Site/Test';
$testFiles = glob($testDir.'/*.php');
$testDirs = [ROOT.'/src/Site/Test', ROOT.'/src/Std/Test'];
$testFiles = [];
foreach ($testDirs as $d) $testFiles[] = glob($d.'/*.php');
$testFiles = array_merge(...$testFiles);
if (empty($testFiles)) {
echo "テストファイルは{$testDir}ありません\n";
echo "テストファイルはありません\n";
exit(1);
}
echo "{$testDir}にある".count($testFiles)."個テストファイルを実行中:\n";
echo count($testFiles)."個テストファイルを実行中:\n";
echo "------------------------------------------------\n";
$totalFiles = 0;