From: Michael Wallner Date: Mon, 26 Mar 2012 07:58:56 +0000 (+0000) Subject: add missing tests X-Git-Tag: DEV_2-before-client~4 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=737776929a44884a24c3e584162d771ada71f7e9;p=m6w6%2Fext-http add missing tests --- diff --git a/package.xml b/package.xml index 6aceacc..266cce7 100644 --- a/package.xml +++ b/package.xml @@ -38,11 +38,7 @@ Extended HTTP support. Again. Keep in mind that it's got the major version 2, be BSD, revised @@ -131,6 +127,8 @@ Extended HTTP support. Again. Keep in mind that it's got the major version 2, be + + diff --git a/php_http.h b/php_http.h index de67ea3..e8d5e40 100644 --- a/php_http.h +++ b/php_http.h @@ -13,7 +13,7 @@ #ifndef PHP_EXT_HTTP_H #define PHP_EXT_HTTP_H -#define PHP_HTTP_EXT_VERSION "2.0.0dev9" +#define PHP_HTTP_EXT_VERSION "2.0.0dev" extern zend_module_entry http_module_entry; #define phpext_http_ptr &http_module_entry diff --git a/tests/envrequestbody002.phpt b/tests/envrequestbody002.phpt new file mode 100644 index 0000000..ec7d2d5 --- /dev/null +++ b/tests/envrequestbody002.phpt @@ -0,0 +1,20 @@ +--TEST-- +env request body +--SKIPIF-- + +DONE +--EXPECT-- +array(2) { + ["foo"]=> + string(3) "bar" + ["baz"]=> + string(3) "buh" +} +DONE diff --git a/tests/envrequestbody003.phpt b/tests/envrequestbody003.phpt new file mode 100644 index 0000000..a22dbbd --- /dev/null +++ b/tests/envrequestbody003.phpt @@ -0,0 +1,48 @@ +--TEST-- +env request body +--SKIPIF-- + +DONE +--EXPECTF-- +array(2) { + ["foo"]=> + string(3) "bar" + ["baz"]=> + string(3) "buh" +} +array(1) { + ["up"]=> + array(5) { + ["name"]=> + string(6) "up.txt" + ["type"]=> + string(0) "" + ["tmp_name"]=> + string(14) "%s" + ["error"]=> + int(0) + ["size"]=> + int(15) + } +} +DONE