test auth middleware

This commit is contained in:
Yisroel Baum 2026-07-31 09:53:12 +03:00
parent 34e26f81f5
commit 19d930b7e8
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
4 changed files with 325 additions and 0 deletions

View file

@ -0,0 +1,18 @@
<?php
namespace Tests\Fakes;
use App\Auth\Clock;
use DateTimeImmutable;
class FakeClock implements Clock
{
public function __construct(
private DateTimeImmutable $currentTime,
) {}
public function now(): DateTimeImmutable
{
return $this->currentTime;
}
}