Commit:    512a74c8a891c08e97c81ced8663a8c5fe3a0193
Author:    Michael Wallner <m...@php.net>         Wed, 9 Oct 2013 11:37:45 +0200
Parents:   19ed3e08aad97ada926ce7f3ff8e9de2f4d9a94a
Branches:  master

Link:       
http://git.php.net/?p=web/qa.git;a=commitdiff;h=512a74c8a891c08e97c81ced8663a8c5fe3a0193

Log:
add EXPECT{,F,REGEX}_EXTERNAL notes

Changed paths:
  M  phpt_details.php


Diff:
diff --git a/phpt_details.php b/phpt_details.php
index d1dc52c..52474e9 100644
--- a/phpt_details.php
+++ b/phpt_details.php
@@ -32,7 +32,9 @@ common_header();
 [<a href="#cgi_section">--CGI--</a>]<br/>
 [<a href="#xfail_section">--XFAIL--</a>]<br/>
 [<a href="#expectheaders_section">--EXPECTHEADERS</a>--]<br/>
-<a href="#expect_section">--EXPECT--</a> | <a 
href="#expectf_section">--EXPECTF--</a> | <a 
href="#expectregex_section">--EXPECTREGEX--</a><br/>
+<a href="#expect_section">--EXPECT--</a> | <a 
href="#expectf_section">--EXPECTF--</a> | <a 
href="#expectregex_section">--EXPECTREGEX--</a>
+| <a href="#expect_external_section">--EXPECT_EXTERNAL--</a> | <a 
href="#expectf_external_section">--EXPECTF_EXTERNAL--</a> | <a 
href="#expectregex_external_section">--EXPECTREGEX_EXTERNAL--</a>
+<br/>
 [<a href="#clean_section">--CLEAN--</a>]
 </dd>
 
@@ -672,7 +674,28 @@ array(2) {
 }</pre></p>
 <p><b>Example 1 (full):</b> <a 
href="sample_tests/sample002.php">sample002.phpt</a></p>
 </dd>
-
+<dt id="expect_external_section">--EXPECT_EXTERNAL--</dt>
+<dd>
+<p><b>Description:</b><br/>
+Similar to to <a href="#expect_section">--EXPECT--</a> section, but just 
stating
+a filename where to load the expected output from.
+</p>
+<p><b>Required:</b><br/>
+One of the EXPECT type sections is required.</p>
+<p><b>Test Script Support:</b><br/>
+run-tests.php</p>
+<p><b>Example 1 (snippet):</b><br/>
+<pre>--EXPECT_EXTERNAL--
+test001.expected.txt
+</pre>
+<p><b>test001.expected.txt</b>
+<pre>array(2) {
+  [&quot;hello&quot;]=&gt;
+  string(5) &quot;World&quot;
+  [&quot;goodbye&quot;]=&gt;
+  string(7) &quot;MrChips&quot;
+}</pre></p>
+</dd>
 <dt id="expectf_section">--EXPECTF--</dt>
 <dd>
 <p><b>Description:</b><br/>
@@ -785,6 +808,19 @@ bool(false)</pre></p>
 <p><b>Example 2 (full):</b> <a 
href="sample_tests/sample020.php">sample020.phpt</a></p>
 </dd>
 
+<dt id="expectf_external_section">--EXPECTF_EXTERNAL--</dt>
+<dd>
+<p><b>Description:</b><br/>
+Similar to to <a href="#expectf_section">--EXPECTF--</a> section, but like the
+<a href="#expect_external">--EXPECT_EXTERNAL--</a> section just stating
+a filename where to load the expected output from.
+</p>
+<p><b>Required:</b><br/>
+One of the EXPECT type sections is required.</p>
+<p><b>Test Script Support:</b><br/>
+run-tests.php</p>
+</dd>
+
 <dt id="expectregex_section">--EXPECTREGEX--</dt>
 <dd>
 <p><b>Description:</b><br/>
@@ -844,6 +880,19 @@ string\(8\) \&quot;2d303132\&quot;
 <p><b>Example 3 (full):</b> <a 
href="sample_tests/sample023.php">sample023.phpt</a></p>
 </dd>
 
+<dt id="expectregex_external_section">--EXPECTREGEX_EXTERNAL--</dt>
+<dd>
+<p><b>Description:</b><br/>
+Similar to to <a href="#expectregex_section">--EXPECTREGEX--</a> section, but 
like the
+<a href="#expect_external">--EXPECT_EXTERNAL--</a> section just stating
+a filename where to load the expected output from.
+</p>
+<p><b>Required:</b><br/>
+One of the EXPECT type sections is required.</p>
+<p><b>Test Script Support:</b><br/>
+run-tests.php</p>
+</dd>
+
 <dt id="clean_section">--CLEAN--</dt>
 <dd>
 <p><b>Description:</b><br/>


--
PHP Quality Assurance Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to