diff options
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; + } +}); |
