[PHP] Self Testing PHP Code... Is it possible or practical??

2004-05-27 Thread Adam Reiswig
Hello all.  I have been reading much lately about the wonders of writing 
self testing code for java, perl and others.  Is this a feasible task to 
accomplish in PHP?  I have googled every search I can think of and there 
just does not appear to be any information regarding self testing php 
out there.  Thanks for any pointers, ideas, advice or help you may have.

-Adam R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Self Testing PHP Code... Is it possible or practical??

2004-05-27 Thread Greg Donald
 Hello all.  I have been reading much lately about the wonders of
writing
 self testing code for java, perl and others.  Is this a feasible task
to
 accomplish in PHP?  I have googled every search I can think of and
there
 just does not appear to be any information regarding self testing php
 out there.  Thanks for any pointers, ideas, advice or help you may
have.

You can use assert() for simple debugging.
http://php.net/assert

There's also PHPUnit2 for bigger stuff.
http://pear.php.net/package/PHPUnit2


--
Greg Donald
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php