com phpruntests: Sample tests for EXPECTHEADERS and FILE_EXTERNAL: phpt-tests/hw.php phpt-tests/sample_ expectheaders.phpt
phpt-tests/sample_fileexternal.phpt
| From: | David Soria Parra | Date: | Wed, 22 Apr 2009 16:14:38 +0000 |
| Subject: | com phpruntests: Sample tests for EXPECTHEADERS and FILE_EXTERNAL: phpt-tests/hw.php phpt-tests/sample_ expectheaders.phpt phpt-tests/sample_fileexternal.phpt |
||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-66541@lists.php.net to get a copy of this message | ||
Commit: c122c39351a555f449900d0083207f8bedc6ff78
Author: Zoe Slattery <zoe@php.net> Wed, 22 Apr 2009 16:14:38 +0000
Parents: 63ac7cf6d46f6697eb721ec15b15f751072dc093
Branches: master
Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=c122c39351a555f449900d0083207f8bedc6ff78
Log:
Sample tests for EXPECTHEADERS and FILE_EXTERNAL
Changed paths:
A phpt-tests/hw.php
A phpt-tests/sample_expectheaders.phpt
A phpt-tests/sample_fileexternal.phpt
Diff:
diff --git a/phpt-tests/hw.php b/phpt-tests/hw.php
new file mode 100644
index 0000000..32f8f4e
--- /dev/null
+++ b/phpt-tests/hw.php
@@ -0,0 +1,3 @@
+<?php
+ echo "hello world\n";
+?>
diff --git a/phpt-tests/sample_expectheaders.phpt b/phpt-tests/sample_expectheaders.phpt
new file mode 100644
index 0000000..9f3707d
--- /dev/null
+++ b/phpt-tests/sample_expectheaders.phpt
@@ -0,0 +1,18 @@
+--TEST--
+Sample expect headers test
+--FILE--
+<?php
+header("HTTP/1.0 404 Not Found");
+echo 'hello world';
+?>
+--EXPECTHEADERS--
+Status: 404 Not Found
+X-Powered-By: PHP/5.3.0RC2-dev
+Content-type: text/html
+
+--EXPECT--
+hello world
+
+
+
+
diff --git a/phpt-tests/sample_fileexternal.phpt b/phpt-tests/sample_fileexternal.phpt
new file mode 100644
index 0000000..324ca04
--- /dev/null
+++ b/phpt-tests/sample_fileexternal.phpt
@@ -0,0 +1,6 @@
+--TEST--
+sample test for file_external
+--FILE_EXTERNAL--
+hw.php
+--EXPECT--
+hello world