From: Michael Wallner Date: Mon, 30 Aug 2021 07:21:19 +0000 (+0200) Subject: test: #90 X-Git-Tag: v4.2.0~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e1a5c09d41a19c94fdcfca1621a9cb35c03fcd82;p=m6w6%2Fext-http test: #90 --- 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==