From e1a5c09d41a19c94fdcfca1621a9cb35c03fcd82 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 30 Aug 2021 09:21:19 +0200 Subject: [PATCH] test: #90 --- tests/envreset001.phpt | 65 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 tests/envreset001.phpt diff --git a/tests/envreset001.phpt b/tests/envreset001.phpt new file mode 100644 index 0000000..547fef0 --- /dev/null +++ b/tests/envreset001.phpt @@ -0,0 +1,65 @@ +--TEST-- +env reset +--SKIPIF-- + +--POST-- +a=b +--ENV-- +HTTP_HOST=foo.bar +HTTP_ACCEPT=*/* +--FILE-- + +==DONE== +--EXPECTF-- +NULL +string(%d) "foo.bar" +string(%d) "application/x-www-form-urlencoded" +array(4) { + ["Accept"]=> + string(3) "*/*" + ["Content-Length"]=> + string(1) "3" + ["Content-Type"]=> + string(33) "application/x-www-form-urlencoded" + ["Host"]=> + string(7) "foo.bar" +} +NULL +string(%d) "foo.bar" +string(%d) "yesyes" +NULL +string(%d) "application/x-www-form-urlencoded" +array(4) { + ["Accept"]=> + string(3) "*/*" + ["Content-Length"]=> + string(1) "3" + ["Content-Type"]=> + string(33) "application/x-www-form-urlencoded" + ["Nono"]=> + string(6) "yesyes" +} +==DONE== -- 2.30.2