Re: replacing pearweb ENV variables with SERVER
[email protected] (Christian Weiske)
| Newsgroups | php.pear.webmaster |
|---|---|
| Message-ID | <[email protected]> |
Hi Greg, > > What I propose is to do the same for every other setting in > > pear-config.php that uses $_ENV. Objections? > That's fine. There is no way to unit test pearweb, because there's no > way to inject $_SERVER in cgi that I've found. Sorry, I did not know that. Now using $_ENV makes sense - for unit tests. Do you happen to know if one can set $_ENV from within the server configuration? I found no way. Using SetEnv in apache sets $_SERVER only. > Not that it matters, > it's like unit testing the federal government here: even though the > tests are written, nobody is going to run them. This is not true anymore. Now that we have our test and continuous integration box, we'll set up regular test runs for pearweb as well. -- Regards/Mit freundlichen Grüßen Christian Weiske -= Geeking around in the name of science since 1982 =-
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkqAQS4ACgkQFMhaCCTq+COmdgCg3bsKEZijJOA8/0A9K9t/Q/cc jfUAni7tvu4Mg1w0+Atba1FZcWK5Mzgf =pTX/ -----END PGP SIGNATURE-----