Re: pear run-tests ... patch

From: Date: Tue, 07 Dec 2004 04:10:53 +0000
Subject: Re: pear run-tests ... patch
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34866@lists.php.net to get a copy of this message
Sean Coates wrote:
Hello Greg, PEAR-dev, Today, I found myself writing some .phpt files, and wanted to fake the include path in which the tests run (I have a "real" PEAR install, but have set up a sandbox one that I'd like to test). It seems that it wasn't easy to uniformly pass a "fake" include path to pear run-tests ... I did a little research, and came up with what I believe to be an acceptable solution to this problem. Could someone with the necessary karma please apply this patch, if there is no problem? http://sean.caedmon.net/patches/pear-runtests.patch In order for this to work, you'll need an updated run-tests.php, for which I also patched, and Ilia graciously committed my patch (http://cvs.php.net/co.php/php-src/run-tests.php?r=1.199) If there is a problem, I'm open to discussion.
The only problem is that pear run-tests uses PEAR/RunTest.php, would you be willing to dive in there and re-make your patch? It will be almost identical except that all of the patching needs to be done in RunTest.php In addition, I wonder if this is the best way to do it? pear run-tests --include_path="" may be a better option, as this doesn't require monkeying with env vars. However, if you always want a different include_path, then I can see supporting both. Don't worry about the option, I can code that later. Greg

« previous php.pear.dev (#34866) next »