Re: stop! .. time for unit tests

Arnaud Limbourg <arnaud-GdXxm9JVFPlWk0Htik3J/[email protected]> Wed, 24 Aug 2005 15:49:51 +0200
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
Quoting Lukas Kahwe Smith <[email protected]>:
> Like I said I already did some basics in simpletest and I have
> experience with PHPUnit. Personally I would prefer phpt over all
> solutions though since it seems the most in the php spirit. Helgi seems
> to have the same perference.

Ok, you do all the work and since I have no experience with Simpletest 
and very
little with PHPUnit I won't go further.

> However in that case we will have to figure out how to deal with the
> session handling. Following is a patch that Marcus Boerger send me a
> while ago that supposedly allows testing with different SAPI's:
> http://pooteeweet.org/phpt/server-tests.phps

I don't know how the sessions can be tested. Of course there is always the
solution of using curl to log onto a live application an emulate a user
behaviour but ...

Arnaud.