how to test using run-tests?
| From: | Gregory Beaver | Date: | Sat, 05 Jan 2008 01:05:16 +0000 |
| Subject: | how to test using run-tests? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-34497@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to figure out how to test a feature in the phar extension
that requires the executable test file to be an actual phar archive.
This would be possible if there was some way to load the --FILE--
section from an external file. Would anyone object to adding a new
section to the .phpt format "--FILE_EXTERNAL--" that simply takes a
relative path to the file to use as the contents for the test?
The attached patch adds this section and also fixes a minor bug in the
handling of POST_RAW that inserts a spurious \n
Greg