com web/qa: add run-tests.php --PUT-- section documentation: phpt_details.php
| From: | David Soria Parra | Date: | Tue, 20 Mar 2012 09:21:26 +0000 |
| Subject: | com web/qa: add run-tests.php --PUT-- section documentation: phpt_details.php | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-66149@lists.php.net to get a copy of this message | ||
Commit: dc50498680811672dc2bc2301adb7b93e65388eb
Author: Michael Wallner <mike@php.net> Tue, 20 Mar 2012 10:21:26 +0100
Committer: Michael Wallner <mike@php.net> Tue, 20 Mar 2012 10:21:26 +0100
Parents: 1513e48e3d023c860b9226af65573fc6f04dab6a
Link: http://git.php.net/?p=web/qa.git;a=commitdiff;h=dc50498680811672dc2bc2301adb7b93e65388eb
Log:
add run-tests.php --PUT-- section documentation
Changed paths:
M phpt_details.php
Diff:
dc50498680811672dc2bc2301adb7b93e65388eb
diff --git a/phpt_details.php b/phpt_details.php
index 9c72982..7e0fc3e 100644
--- a/phpt_details.php
+++ b/phpt_details.php
@@ -21,7 +21,7 @@ common_header();
[<a href="#credits_section">--CREDITS--</a>]<br/>
[<a href="#skipif_section">--SKIPIF--</a>]<br/>
[<a href="#request_section">--REQUEST--</a>]<br/>
-[<a href="#post_section">--POST--</a> | <a
href="#post_raw_section">--POST_RAW--</a> | <a
href="#gzip_post_section">--GZIP_POST--</a> | <a
href="#deflate_post_section">--DEFLATE_POST--</a> | <a
href="#get_section">--GET--</a>]<br/>
+[<a href="#post_section">--POST--</a> | <a
href="#put_section">--PUT--</a> | <a
href="#post_raw_section">--POST_RAW--</a> | <a
href="#gzip_post_section">--GZIP_POST--</a> | <a
href="#deflate_post_section">--DEFLATE_POST--</a> | <a
href="#get_section">--GET--</a>]<br/>
[<a href="#cookie_section">--COOKIE--</a>]<br/>
[<a href="#stdin_section">--STDIN--</a>]<br/>
[<a href="#ini_section">--INI--</a>]<br/>
@@ -226,6 +226,27 @@ abcdef123456789
<p><b>Example 1 (full):</b> <a
href="sample_tests/sample006.php">sample006.phpt</a></p>
</dd>
+<dt id="put_section">--PUT--</dt>
+<dd>
+<p><b>Description:</b><br/>
+Similar to the section above, PUT data to be passed to the test script.
+This section forces the use of the CGI binary instead of the usual CLI one.</p>
+<p><b>Required:</b><br/>
+No.</p>
+<p><b>Requirements:</b><br/>
+PHP CGI binary.</p>
+<p><b>Test Script Support:</b><br/>
+run-tests.php</p>
+<p><b>Format:</b><br/>
+Raw data optionally preceeded by a Content-Type header.</p>
+<p><b>Example 1 (snippet):</b><br/>
+<pre>--PUT--
+Content-Type: text/json
+
+{"name":"default output
handler","type":0,"flags":112,"level":0,"chunk_size":0,"buffer_size":16384,"buffer_used":3}</pre>
+</p>
+</dd>
+
<dt id="gzip_post_section">--GZIP_POST--</dt>
<dd>
<p><b>Description:</b><br/>