By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,776 Members | 1,233 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,776 IT Pros & Developers. It's quick & easy.

Unit testing in PHP.

P: n/a
Hi,

I was googling for a unit testing framework for php. I stumbled upon 3,
all are named PHPUnit.

1) http://phpunit.sourceforge.net/
2) http://pear.php.net/package/PHPUnit/
3) http://pear.php.net/package/PHPUnit2/

I am confused. Can anybody help me out and tell me what is happening
and clear the confusion.

Please share your experiences with a other unit testing frameworks for
PHP.

Thanks.

Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
mi******@gmail.com wrote:
Hi,

I was googling for a unit testing framework for php. I stumbled upon 3,
all are named PHPUnit.

1) http://phpunit.sourceforge.net/
2) http://pear.php.net/package/PHPUnit/
3) http://pear.php.net/package/PHPUnit2/

I am confused. Can anybody help me out and tell me what is happening
and clear the confusion.

Please share your experiences with a other unit testing frameworks for
PHP.


Another one to add to the list: simpleTest.

Personally I think PEAR is a bot of a lifestyle choice, and very heavy in
some departments. [ /me dons flameproof suit ]

Of course if you're already a born-again PEAR programmer, then maybe the
PEAR tools make more sense.

Certainly phpUnit does the job for me, although I also use Rephlux - one of
these days I'll try to work out how I can just use one or the other.

HTH

C.
Jul 17 '05 #2

P: n/a
Yes but there are two packages in PEAR too
1) PHPUnit
and
2) PHPUnit2

which one are you talking about.

Jul 17 '05 #3

P: n/a
Colin McKinnon schrieb:
mi******@gmail.com wrote:

Hi,

I was googling for a unit testing framework for php. I stumbled upon 3,
all are named PHPUnit.

1) http://phpunit.sourceforge.net/
2) http://pear.php.net/package/PHPUnit/
3) http://pear.php.net/package/PHPUnit2/


1) is old (2002) and obviously no longer maintained. It could even be a
predecessor of 2) and 3).

2) and 3) are two versions of PHPUnit from the same team. PHPUnit still
runs under PHP4 and PHPUnit2 requires PHP5. PHP5 made it possible that
PHPUnit2 implements the whole functionality of the recent JUnit versions.

Hope that helps.

AllOLLi
Jul 17 '05 #4

P: n/a
thanks Olive.

Can you point me to some online tutorial of PHPUnit and PHPUnit2

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.