{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/opt\/php-tools\/bootstrap.php"
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/opt\/php-tools\/bootstrap.php",
"content": "<?php\n\/**\n * PHPUnit Bootstrap\n * Loads project autoloader and test dependencies\n *\/\n\n\/\/ Project path (set via environment or default)\n$projectPath = getenv('PROJECT_PATH') ?: '\/var\/www\/dev.campus.systemische-tools.de';\n\n\/\/ Load PHPUnit autoloader\nrequire_once __DIR__ . '\/vendor\/autoload.php';\n\n\/\/ Register PSR-4 autoloader for project namespaces\nspl_autoload_register(function (string $class) use ($projectPath): void {\n \/\/ Namespace prefixes mapped to directories\n $prefixes = [\n 'Domain\\\\' => $projectPath . '\/src\/Domain\/',\n 'App\\\\' => $projectPath . '\/app\/',\n 'Tests\\\\' => $projectPath . '\/tests\/',\n ];\n\n foreach ($prefixes as $prefix => $baseDir) {\n $len = strlen($prefix);\n if (strncmp($prefix, $class, $len) === 0) {\n $relativeClass = substr($class, $len);\n $file = $baseDir . str_replace('\\\\', '\/', $relativeClass) . '.php';\n if (file_exists($file)) {\n require_once $file;\n return;\n }\n }\n }\n});\n\n\/\/ Define test constants\nif (!defined('PROJECT_PATH')) {\n define('PROJECT_PATH', $projectPath);\n}\nif (!defined('TEST_MODE')) {\n define('TEST_MODE', true);\n}\n",
"numLines": 42,
"startLine": 1,
"totalLines": 42
}
}
}