diff options
| author | Sam Light <sam@lightscale.co.uk> | 2026-06-10 19:00:33 +0100 |
|---|---|---|
| committer | Sam Light <sam@lightscale.co.uk> | 2026-06-10 19:00:33 +0100 |
| commit | 7d76684ad6cd0182545489d7ed54ae9823d94ffa (patch) | |
| tree | beb2f79d2ff695a1dd467d95276947f655adaffb /tests/Datasets | |
| parent | 968662ee16a1efc7cb7c176a42af91f36eecc9ca (diff) | |
Testing the creating routes on a group definition and code format
Diffstat (limited to 'tests/Datasets')
| -rw-r--r-- | tests/Datasets/HttpMethods.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/Datasets/HttpMethods.php b/tests/Datasets/HttpMethods.php new file mode 100644 index 0000000..fa90b14 --- /dev/null +++ b/tests/Datasets/HttpMethods.php @@ -0,0 +1,11 @@ +<?php + +declare(strict_types=1); + +use Lightscale\Router\Enums\HttpMethod; + +dataset('http-methods', function (): Generator { + foreach (HttpMethod::cases() as $m) { + yield $m->value => $m; + } +}); |
