- add tests
authorMichael Wallner <mike@php.net>
Sun, 24 Jul 2005 18:22:12 +0000 (18:22 +0000)
committerMichael Wallner <mike@php.net>
Sun, 24 Jul 2005 18:22:12 +0000 (18:22 +0000)
tests/INI_001.diff [new file with mode: 0644]
tests/allowed_methods_001.phpt [new file with mode: 0644]

diff --git a/tests/INI_001.diff b/tests/INI_001.diff
new file mode 100644 (file)
index 0000000..ee158d0
--- /dev/null
@@ -0,0 +1,7 @@
+001+ 
+001- %sTEST
+002- bool(true)
+003- string(9) "cache.log"
+004- bool(true)
+005- string(15) "POST, HEAD, GET"
+006- Done
\ No newline at end of file
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
+