Initial commit
Some checks failed
PHP Composer / build (push) Has been cancelled

This commit is contained in:
Armel van Ravels
2024-08-30 20:29:39 +02:00
commit 804a875aff
38 changed files with 7224 additions and 0 deletions

15
tests/Pest.php Normal file
View File

@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
use Laminas\Diactoros\ServerRequest;
use League\Route\Router;
use Psr\Http\Message\ResponseInterface;
function get(string $uri, array $headers = [], array $cookies = []): ResponseInterface
{
$router = app(Router::class);
$request = new ServerRequest(uri: $uri, method: 'GET', headers: $headers, cookieParams: $cookies);
return $router->dispatch($request);
}