summaryrefslogtreecommitdiff
path: root/tests/Fixtures/OnlyGetController.php
diff options
context:
space:
mode:
authorBrett Parson <brett@brett-parson.com>2026-08-29 15:56:31 -0500
committerBrett Parson <brett@brett-parson.com>2026-08-29 15:56:31 -0500
commit965551532d684456b74baf960157c0c2cef7335d (patch)
tree1445afbc47730caa11d08fd84d9d65db132821f5 /tests/Fixtures/OnlyGetController.php
parentd039a5d62a9ac6ababae70d9d96422ca59f2b2d4 (diff)
downloadminiroute-965551532d684456b74baf960157c0c2cef7335d.tar.gz
miniroute-965551532d684456b74baf960157c0c2cef7335d.zip
Add regression and integration test suite
Port the stress-test findings into PHPUnit: realistic brett-parson.com route model, known-issue baselines, router boundary cases, and a standalone scaling benchmark (composer bench).
Diffstat (limited to 'tests/Fixtures/OnlyGetController.php')
-rw-r--r--tests/Fixtures/OnlyGetController.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/Fixtures/OnlyGetController.php b/tests/Fixtures/OnlyGetController.php
new file mode 100644
index 0000000..0ab18f4
--- /dev/null
+++ b/tests/Fixtures/OnlyGetController.php
@@ -0,0 +1,21 @@
+<?php
+
+declare(strict_types=1);
+
+namespace BrettParson\MiniRoute\Tests\Fixtures;
+
+use BrettParson\MiniRoute\Attribute\Get;
+use BrettParson\MiniRoute\Http\ResponseInterface;
+
+/**
+ * A single GET route, used to probe method handling: POST and HEAD on the
+ * same path (v0.1.0 baselines; see miniroute-uhs.2 / miniroute-uhs.3).
+ */
+final class OnlyGetController
+{
+ #[Get('/only')]
+ public function get(): ResponseInterface
+ {
+ return new TestResponse(200, 'only-get');
+ }
+}