Re: PHPT ===DONE===

From: Date: Sat, 12 May 2007 15:08:12 +0000
Subject: Re: PHPT ===DONE===
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27277@lists.php.net to get a copy of this message
Gregory Beaver schrieb: Hello Gregory, after a while, spending time on this code, I'm back...
Are there any infos on the PEAR website about phpt? For example RunTest.php knows the sections "FAIL" and "RETURNS", which aren't described on [1].
"UPLOAD" is also a section not really used in "run-tests.php". But a good idea.
--RETURNS-- is used to test the return value for scripts that are used in shell scripts.
That's also a good idea. But why want you have this feature only on Windows? There are also some other problems. Let me remmeber: - ENV and COOKIE and test whitch require the cgi-binary are not working with PHP4 - RETURNS does not work with all PHP binarys (depends on the configure options) and OS - POST_RAW does not allow a real raw http message, according to the rfc - does not work correct on Win9x - does not work with spaces in pathnames - does not work if the phpt files uses "\r" for lineendings - does not work if you use the cgi binary for pear. - the second parameter from run() can only be used for the PhpUnit test - tap output is not correct - wrong test summary if you use top output (I hope, I have not forgotten one...) So in the current form, I don't think you can recommend this test [1]. Another question: Why is the value for the doc block tag "@category" "pear" (in all PEAR files)? If I read this [2] correct, it should be "PEAR", or not? Regards, Carsten [1] http://pear.php.net/manual/en/developers.contributing.php#developers.contributing.requirements [2] http://pear.php.net/manual/en/developers.contributing.howto.php

« previous php.pear.general (#27277) next »