Re: Re: Automated testing
| From: | Stefan Neufeind | Date: | Mon, 06 Oct 2003 23:00:06 +0000 |
| Subject: | Re: Re: Automated testing | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-22419@lists.php.net to get a copy of this message | ||
On 6 Oct 2003 at 15:58, Tomas V.V.Cox wrote:
> Keith Edmunds wrote:
> > Has anyone done any work on automated testing of PHP/PEAR
> > applications? It seems much harder to write a test suite for
> > interactive applications than traditional data processing
> > applications, and I'd be interested in hearing about any approaches
> > that have been used.
> >
>
> Currently we're using the php test suite, integrated in the pear
> command as "pear run-tests <file>.phpt". Read more about it at:
> http://qa.php.net/write-test.php
Hmm - has there been a decision for an "official" way to do it? Now I
hear about phpt, several times in the past PHPUnit-tests were
mentioned ...
And what's even more interesting for me: How should I test functions
that don't have real "return values" but modify a state of an object
or of a file? E.g. many functions of class DB or MP3-tagging (ID3) of
a file. Any proposal for unit-tests under those circumstances?
Stefan