Re: Mock HTTP servers for unit tests. [message #185683 is a reply to message #185681] |
Wed, 30 April 2014 15:34 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 4/30/2014 10:28 AM, Denis McMahon wrote:
> On Tue, 29 Apr 2014 16:56:57 -0700, Daniel Pitts wrote:
>
>> I am very familiar with testing methodologies and technologies. Just
>> most of my recent experience was with Java, where it's relatively easy
>> to start a mock http server in a separate thread. Not as easy in PHP.
>> I'm asking about Mock HTTP servers. Not about testing.
>
> What do you want your mock http server to do? It probably isn't going to
> be able to sit on port 80 without privs, assuming nothing else is on port
> 80 already. Does it need to do more than open a listening port on
> localhost, listen for some packets, send responses depending on the
> requests? I believe php comes with a basic http server, perhaps you could
> adapt that to your needs?
>
Denis,
Why bother, when it's so easy to set up an Apache test system?
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex(at)attglobal(dot)net
==================
|
|
|