Re: Why change require_once? A brief explanation of motives
| From: | Lukas Kahwe Smith | Date: | Tue, 17 Jul 2007 15:25:24 +0000 |
| Subject: | Re: Why change require_once? A brief explanation of motives | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-47570@lists.php.net to get a copy of this message | ||
Alexey Borzov wrote:
Hi, Lukas Kahwe Smith wrote:I do not see the issue with unit tests really. For usage examples it also requires installing the packages and setting up the include path. Again I acknowledge that any change will create some pains, but I do not see them as so gigantic. Oh well. Whatever. regards, LukasTranslation: neither usage examples, nor unit tests will work out of the box as they do now. And that, ladies and gentlemen, is also presented as a FUCKING HUGE IMPROVEMENT over current situation.Usage examples will expect the user to have defined this, just as we expect the include path setting to be setup today. Unit tests always require some sort of setup or runner script. This script can handle this part. Ideally one would be able to run the tests using autoload or allfiles, just to check if its works both ways.OK, how will the usage examples and unit tests access this single __autoload() implementation?The usage examples and unit tests need to load the package classes, you know, as well as dependencies. How are they going to find them?All packages in PEAR will be able to work with a single __autoload() implementation. So I do not see the issue.