Re: Self Testing PHP Code... Is it possible or practical??
| From: | Greg Donald | Date: | Thu, 27 May 2004 16:12:04 +0000 |
| Subject: | Re: Self Testing PHP Code... Is it possible or practical?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187060@lists.php.net to get a copy of this message | ||
> 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/