Re: Wanted: permanent maintainer for HTTP_Request

From: Date: Mon, 27 Oct 2003 14:22:38 +0000
Subject: Re: Wanted: permanent maintainer for HTTP_Request
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-23034@lists.php.net to get a copy of this message
Hi! Stefan Walk wrote:
Currently i'm exploring how to use the phpUnit package for these unit tests. But the unit tests for HTTP_Request aren't that easy. Take for an example uploads. Which site allow free uploading of images or other files? Testing the download is easy. Downloading a pear logo from the site will be suffiant. There were also some bugfixes which need to be tested, for example the HTTP 100 continue status. Personaly i never saw this status (excluding RFC2616 ;-)
Just a suggestion for the unit tests... If you set up an include_path with a fake Net_Socket in it, you should be able to emulate a server so you can test HTTP_Request without wasting traffic and server resources, and testing exotic cases...
In fact yes, you can just test request building/response parsing without actually sending anything anywhere.

« previous php.pear.dev (#23034) next »