Unit testing in PHP.

This is a discussion on Unit testing in PHP. within the PHP Language forums, part of the PHP Programming Forums category; Hi, I was googling for a unit testing framework for php. I stumbled upon 3, all are named PHPUnit. 1) ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-11-2005
mirnazim@gmail.com
 
Posts: n/a
Default Unit testing in PHP.

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.

Reply With Quote
  #2 (permalink)  
Old 05-11-2005
Colin McKinnon
 
Posts: n/a
Default Re: Unit testing in PHP.

mirnazim@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.
Reply With Quote
  #3 (permalink)  
Old 05-12-2005
mirnazim@gmail.com
 
Posts: n/a
Default Re: Unit testing in PHP.

Yes but there are two packages in PEAR too
1) PHPUnit
and
2) PHPUnit2

which one are you talking about.

Reply With Quote
  #4 (permalink)  
Old 05-17-2005
Oliver Grätz
 
Posts: n/a
Default Re: Unit testing in PHP.

Colin McKinnon schrieb:
> mirnazim@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
Reply With Quote
  #5 (permalink)  
Old 05-18-2005
mirnazim@gmail.com
 
Posts: n/a
Default Re: Unit testing in PHP.

thanks Olive.

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:22 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0