<?php
// Fix test_index.php
define('FCPATH', __DIR__ . '/public/');
define('ENVIRONMENT', 'development'); // define ENVIRONMENT
require FCPATH . '../app/Config/Paths.php';
$paths = new Config\Paths();
require $paths->systemDirectory . '/bootstrap.php';

$controller = new \App\Controllers\Mahasiswa();
try {
    $result = $controller->index();
    echo "Index works.\n";
} catch (\Exception $e) {
    echo "Exception: " . $e->getMessage() . "\n";
} catch (\Error $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
