From 965551532d684456b74baf960157c0c2cef7335d Mon Sep 17 00:00:00 2001 From: Brett Parson Date: Sat, 29 Aug 2026 15:56:31 -0500 Subject: 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). --- tests/Fixtures/RealisticPublicController.php | 72 ++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 tests/Fixtures/RealisticPublicController.php (limited to 'tests/Fixtures/RealisticPublicController.php') diff --git a/tests/Fixtures/RealisticPublicController.php b/tests/Fixtures/RealisticPublicController.php new file mode 100644 index 0000000..992b17b --- /dev/null +++ b/tests/Fixtures/RealisticPublicController.php @@ -0,0 +1,72 @@ +param('slug')); + } + + #[Get('/feed.xml')] + public function feed(): ResponseInterface + { + return new TestResponse(200, 'feed'); + } + + #[Get('/robots.txt')] + public function robots(): ResponseInterface + { + return new TestResponse(200, 'robots'); + } + + #[Get('/sitemap.xml')] + public function sitemap(): ResponseInterface + { + return new TestResponse(200, 'sitemap'); + } + + #[Get('/notes')] + public function notes(): ResponseInterface + { + return new TestResponse(200, 'notes'); + } + + #[Get('/notes/{id}')] + public function noteShow(RequestInterface $request): ResponseInterface + { + return new TestResponse(200, 'note-show:' . $request->param('id')); + } +} -- cgit v1.2.3