<?php

declare(strict_types=1);

ini_set('display_errors', '1');
error_reporting(E_ALL);

$app = require dirname(__DIR__) . '/bootstrap/app.php';

echo '<pre>';

$class = 'App\\Modules\\Administration\\Repositories\\DepartmentRepository';

echo "Class: {$class}\n\n";

echo 'class_exists: ';
var_dump(class_exists($class));

echo "\nExpected file:\n";

$file = dirname(__DIR__)
    . '/app/Modules/Administration/Repositories/DepartmentRepository.php';

echo $file . "\n\n";

echo 'file_exists: ';
var_dump(file_exists($file));

echo "\n";

if (file_exists($file)) {
    echo 'File readable: ';
    var_dump(is_readable($file));
}

echo '</pre>';