Re: QA with PHPUnit test script and PHP_CodeSniffer ...with a bit of new of Services_W3C_CSSValidator
| From: | Alexey Borzov | Date: | Tue, 20 Nov 2007 21:51:40 +0000 |
| Subject: | Re: QA with PHPUnit test script and PHP_CodeSniffer ...with a bit of new of Services_W3C_CSSValidator | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-48523@lists.php.net to get a copy of this message | ||
Hi,
Chuck Burgess wrote:
Ooohkay, if you put it that way then I suggest making an exception for PHPunit in the standards. That'll be better than making PEAR's PHPUnit tests incompatible with PHPUnit tests from everywhere else.True, and as use of code generator tools increases, we'll have the same question if those generators create constants like this. The question then becomes whether or not we bend the standards to fit the tools, or bend the resulting code to fit the standards.In my opionion we should keep it the way it is - as phpunit generatesit. If we don't, we'll always have problems with new code of new (or old) developers that don't remember that rule.Christian, I understand your point of view, but we are in front (again) of a coding standard exception. See page of manual [1] about constant. [1] http://pear.php.net/manual/en/standards.naming.php#AEN1215