<?php

// Define WD to the application root if not already defined
if (!defined('WD')) { define('WD', dirname(__DIR__, 2)); }

require_once WD . '/modules/selfserve/helpers/selfserve_lane_services.php';

use modules\selfserve\helpers\selfserve_lane_services;

// Simple assertions without a framework
$cases = selfserve_lane_services::cases();
$names = array_map(fn($c) => $c->name, $cases);

if (!in_array('MACHINE', $names, true)) {
    fwrite(STDERR, "✘ Expected enum case MACHINE to be defined\n");
    exit(1);
}
echo "✔ selfserve_lane_services enum is loadable and contains MACHINE\n";
echo "SelfserveLaneServicesEnumTest completed.\n";
