<?php
// Test the fee selection system
session_start();

// Simulate a logged-in student
$_SESSION['user_id'] = 1; // Assuming user ID 1 exists
$_SESSION['user_role'] = 'student';

echo "Fee Selection System Test\n";
echo "========================\n";

// Test if the select fees page exists
$select_fees_page = 'fees/select_fees.php';
if (file_exists($select_fees_page)) {
    echo "✓ Fee selection page exists\n";
} else {
    echo "✗ Fee selection page NOT FOUND\n";
}

// Test if the student payment page exists
$student_payment_page = 'fees/student_payment.php';
if (file_exists($student_payment_page)) {
    echo "✓ Student payment page exists\n";
} else {
    echo "✗ Student payment page NOT FOUND\n";
}

// Test if the payment success page exists
$payment_success_page = 'fees/uddoktapay_success.php';
if (file_exists($payment_success_page)) {
    echo "✓ Payment success page exists\n";
} else {
    echo "✗ Payment success page NOT FOUND\n";
}

// Test if the my fees page exists
$my_fees_page = 'fees/my_fees.php';
if (file_exists($my_fees_page)) {
    echo "✓ My fees page exists\n";
} else {
    echo "✗ My fees page NOT FOUND\n";
}

echo "\nSystem test completed successfully!\n";
echo "You can now access the fee selection system at: http://localhost:8000/fees/select_fees.php\n";
?>