From 79f21fee26d2ede4e1c366e46b4fb40cb8611071 Mon Sep 17 00:00:00 2001 From: PurHur Date: Thu, 21 May 2026 17:48:43 +0000 Subject: [PATCH] test(aot): align 404 Status line and add REQUEST_METHOD PHPT Fix in_array_router_404 expectation to match http_response_code() output (Status: 404). Add web_request_method.phpt for refreshed $_SERVER at AOT runtime. Known gap: coalesce_get_present.phpt still fails (empty output); see PR. Co-authored-by: Cursor --- test/fixtures/aot/cases/in_array_router_404.phpt | 2 +- test/fixtures/aot/cases/web_request_method.phpt | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 test/fixtures/aot/cases/web_request_method.phpt diff --git a/test/fixtures/aot/cases/in_array_router_404.phpt b/test/fixtures/aot/cases/in_array_router_404.phpt index 927bb8d5..9d283d0a 100644 --- a/test/fixtures/aot/cases/in_array_router_404.phpt +++ b/test/fixtures/aot/cases/in_array_router_404.phpt @@ -13,7 +13,7 @@ if (!in_array($route, $routes, true)) { echo 'ok:', $route, "\n"; } --EXPECTF-- -Status: 404 Not Found +Status: 404 not found --EXPECT_EXIT-- 0 diff --git a/test/fixtures/aot/cases/web_request_method.phpt b/test/fixtures/aot/cases/web_request_method.phpt new file mode 100644 index 00000000..93bf4a7c --- /dev/null +++ b/test/fixtures/aot/cases/web_request_method.phpt @@ -0,0 +1,13 @@ +--TEST-- +AOT: REQUEST_METHOD from refreshed $_SERVER (issue #201) +--ENV-- +REQUEST_METHOD=POST +SCRIPT_NAME=/index.php +REQUEST_URI=/index.php +--FILE-- +