Re: Unit-testing PHP code
| From: | Mark Harwood | Date: | Thu, 13 Feb 2003 13:57:54 +0000 |
| Subject: | Re: Unit-testing PHP code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135448@lists.php.net to get a copy of this message | ||
Check out.
http://www.phpbuilder.com/columns/reiersol20030126.php3
http://pear.php.net/manual/en/packages.phpunit.tutorial.php
Mark
"Karl Traunmueller" <karl@sofascience.com> wrote in message
news:20030213123533.84520.qmail@pb1.pair.com...
> Hi all,
>
> I've written some small Web applications with PHP and I like it.
> Since I'm accustomed to thinking OO, I was using the object-oriented
> language features. This worked quite well, giving a reasonably clean
design.
> However, as with all software projects beyond a certain scope, things
> start getting hard to maintain/test at some point.
>
> Now, the next step for me is to make my code unit-testable. I want to run
> automatic tests on my local development machine, testing the PHP code
> without having to upload to the Web Server and manually test something.
>
> Most preferrably would be a solution similar to nUnit/jUnit. As far as I
> understand, a local installation of the ZEND engine could be used to run
the
> PHP code, and some test driver framework would be needed to run all tests
> through ZEND and verify the results.
>
> Has anybody done this yet? I've found the phpunit project, but there seems
> to be nothing more than the sourceforge project page, which is not
> very informative.
>
> regards
> Karl
>
> --
> _____________________________________
> DI Karl Traunmüller
> karl@sofascience.com
>
> DI Karl Traunmüller Softwareentwicklung
>
> Starhembergstr. 44/1, A-4020 Linz, Austria
> tel +43 732 667950, mobile +43 664 4037084
> ICQ 179001232
> www.sofascience.com
> _____________________________________
>
>
>