The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

PHPUnit

I am sort of new at PHP and was wondering if somebody has used PHPUnit for unit testing code?

If so, how do you find it? or can you recommend any tool for unit testing PHP code? I am looking for something as similar as possible to JUnit

thanks!
EdNoWeb
Tuesday, November 27, 2007
 
 
Sebastion Bergman - the developer behind phpUnit - developed it as a clone of jUnit.  The syntax is as similar as it can be (PHP vs Java and all) and it works effectively the same.  Some of the IDE's - Eclipse, Zend Studio, and Neon - offer varying levels of integration and support.

If you really want a Java-like environment, you can use Phing to use a build.xml file to drive the whole process.  That allows you to plug into some of the Continuous Integration systems out there...

http://www.phpunit.de/
http://phing.info/trac/

* Disclaimer - Hans Lellelid (project lead of Phing) is a colleague in our local DCPHP Group and he happens to be a good guy.
KC Send private email
Tuesday, November 27, 2007
 
 
Apart from PHPUnit, there's also SimpleTest, which is fairly feature-rich as well.
Troels Knak-Nielsen Send private email
Wednesday, November 28, 2007
 
 
Thanks a lot!
EdNoWeb
Wednesday, November 28, 2007
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz