- add tests
[m6w6/ext-http] / tests / allowed_methods_001.phpt
diff --git a/tests/allowed_methods_001.phpt b/tests/allowed_methods_001.phpt
new file mode 100644 (file)
index 0000000..2f2c4e7
--- /dev/null
@@ -0,0 +1,18 @@
+--TEST--
+allowed methods
+--SKIPIF--
+<?php
+include 'skip.inc';
+checkcgi();
+?>
+--FILE--
+<?php
+ini_set('http.allowed_methods', 'POST');
+echo "Done\n";
+?>
+--EXPECTF--
+Status: 405
+Content-type: %s
+X-Powered-By: PHP/%s
+Allow: POST
+