Re: Validate_* and unit tests

From: Date: Wed, 05 Nov 2008 12:53:50 +0000
Subject: Re: Validate_* and unit tests
References: 1 2  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-4984@lists.php.net to get a copy of this message
> I find reading the diff ridiculously hard, other then that feel free. In short it: 1. Makes an array of paths to check (installed data path first, relative to the file in CVS second) 2. Tries each in order and does file_exists - unless you accidentally create a directory named "@DATADIR" in CVS; everything should be fine 3. As soon as it finds data, it loads and uses that. In a Perfect World, we'd change the test to know exactly where to look, rather than the class. > I do however remember having that same issue at some point but was > prohibited to make any adjustments because I was supposed to > constantly be running "pear install" after every single change to test > the package :( Well; for us to run http://www.lauken.com/doconnor/ and http://pear.cweiske.de/ installing makes things harder. I think the benefit of having unit-tests-run-fine-from-cvs AND unit-tests-run-fine-installed beats just unit-tests-run-fine-installed ; and opinion has probably shifted in a few places now. Thanks Hannes!

« previous php.pear.qa (#4984) next »