Re: Re: [PEPr] +1 for Web Services::Services_Delicious
| From: | bertrand Gugger | Date: | Wed, 17 Nov 2004 17:35:29 +0000 |
| Subject: | Re: Re: [PEPr] +1 for Web Services::Services_Delicious | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-34433@lists.php.net to get a copy of this message | ||
Bonsoir,
Greg Beaver wrote:
bertrand Gugger wrote:I know it exists some .phpt in Console_Getopt, what's the command ? pear run-tests Console_Getopt ? Excuse me I don't catch it. (recent pear addict) What about "learning" test environment unit & integration ? best, bertrandAnyway, even PHPunit could have such learning ability thru some catch points, e.g. in begin of methods. These catch points could store the data as a PHP scritpt. That could ease the writing of unit tests variables'initilization. I suggested that once to Sebastian Bergmann but I mean he was quite busy with a new release in this moment.I actually wrote a stub for .phpt (pear run-tests) that uses this method to compare all data through var_export() output, instead of using serialize(). It has made unit-testing things like the 16 kb array output of the PEAR_DependencyDB a piece of cake. In addition, since I use Text_Diff, it means that when there is a single line difference in the array, you see: How can this be runned ?