22 lines
883 B
PHP
22 lines
883 B
PHP
<?php
|
|
error_reporting(E_ALL);
|
|
ini_set('display_errors', 1);
|
|
|
|
echo "<h1>Detailed File Requirement Test</h1>";
|
|
|
|
function test_require($name, $path) {
|
|
echo "<h3>Testing $name ($path)...</h3>";
|
|
try {
|
|
require_once $path;
|
|
echo "<p style='color: green;'>✅ $name: SUCCESS</p>";
|
|
} catch (Throwable $e) {
|
|
echo "<p style='color: red;'>❌ $name: FAILED<br>Error: " . $e->getMessage() . "</p>";
|
|
}
|
|
}
|
|
|
|
test_require('AppServiceProvider', __DIR__ . '/../app/Providers/AppServiceProvider.php');
|
|
test_require('LeavePolicyController', __DIR__ . '/../app/Http/Controllers/LeavePolicyController.php');
|
|
test_require('AttendanceRecordController', __DIR__ . '/../app/Http/Controllers/AttendanceRecordController.php');
|
|
// Testing helper.php might be slow if it has many dependencies, but let's try
|
|
test_require('helper.php', __DIR__ . '/../app/Helpers/helper.php');
|