<?php

namespace duncan3dc\SessionsTest;

require __DIR__ . "/../vendor/autoload.php";

const SERVER_PORT = 5355;

# Start the internal web server for cookie based tests
exec("php -S localhost:" . SERVER_PORT . " -t " . __DIR__ . "/web >/dev/null 2>&1 & echo $!", $output, $status);
$pid = (int) $output[0];

# Ensure the internal web server is killed when the tests end
register_shutdown_function(function () use ($pid) {
    exec("kill {$pid}");
});

<?php

namespace duncan3dc\SessionsTest;

require __DIR__ . "/../vendor/autoload.php";

const SERVER_PORT = 15377;

# Start the internal web server for cookie based tests
exec("php -S localhost:" . SERVER_PORT . " -t " . __DIR__ . "/web >/dev/null 2>&1 & echo $!", $output, $status);
$pid = (int) $output[0];

# Ensure the internal web server is killed when the tests end
register_shutdown_function(function () use ($pid) {
    exec("kill {$pid}");
});

Update the port to test on as 5355 is used by systemd-resolve
Update the port to test on as 5355 is used by systemd-resolve
