Re: PHP Unit Tests - which framework to use?
| From: | Matthew Weier O'Phinney | Date: | Fri, 07 Jan 2005 16:59:08 +0000 |
| Subject: | Re: PHP Unit Tests - which framework to use? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205838@lists.php.net to get a copy of this message | ||
* dAniel hAhler <genml@thequod.de>:
> I'm looking for a PHP Unit Test framework and found so far:
> SimpleTest: https://sourceforge.net/projects/simpletest/
> PEAR PHPUnit:
> - http://pear.php.net/package/PHPUnit
> - http://pear.php.net/package/PHPUnit2
> Sourceforge PHPUnit: http://phpunit.sourceforge.net/
>
> While SF PHPUnit seems to have stalled (2002-10) there are still PEAR
> PHPUnit and Simpletest.
>
> I'd like to hear your opinions/experiences on what's better to use.
>
> I'm mainly searching it for an OSS project, but would like to use it at
> work, too.
>
> I'm still on PHP4 mainly - but tests could be done/run with PHP5 of
> course (if PHPUnit2 supports that).
I've used both PEAR::PHPUnit and SimpleTest. I like SimpleTest better...
mainly because it's documented so well. I was up and running with
SimpleTest in a matter of an hour, whereas I'd struggled for the better
part of a day trying to figure out from the docs how to use PHPUnit --
and only managed a portion of what I accomplished with SimpleTest in
that hour.
'Course, the PHPUnit docs may have been improved since I last tried it
-- YMMV.
--
Matthew Weier O'Phinney | mailto:matthew@garden.org
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org