- extend & fixup test suite
[m6w6/ext-http] / tests / allowed_methods_002.phpt
diff --git a/tests/allowed_methods_002.phpt b/tests/allowed_methods_002.phpt
new file mode 100644 (file)
index 0000000..2185d8b
--- /dev/null
@@ -0,0 +1,21 @@
+--TEST--
+allowed methods
+--SKIPIF--
+<?php
+include 'skip.inc';
+checkcgi();
+checkmin(5.1);
+?>
+--FILE--
+<?php
+include 'log.inc';
+log_prepare(_AMETH_LOG);
+ini_set('http.allowed_methods', 'POST');
+echo "Done\n";
+?>
+--EXPECTF--
+Status: 405
+X-Powered-By: PHP/%s
+Allow: POST
+Content-type: %s
+