FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Mock HTTP servers for unit tests.
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Mock HTTP servers for unit tests. [message #185668] Tue, 29 April 2014 17:23 Go to previous message
Daniel Pitts is currently offline  Daniel Pitts
Messages: 68
Registered: May 2012
Karma:
Member
I'm developing some code which makes http requests from PHP. I'd like to
be able to Unit Test my code as smoothly as possible.

I've searched Google, and I see there is more than one solution
available. I like the look of InterNations[1], but I wanted to ask this
community if they've had experience with any of them, and whether that
experience was positive or negative.

Things I need:
* Ability to validate a specific request was made, with a specific
set of Headers.
* Ability to provide a "mock" response, and validate my code can
handle it.

Things I really want:
* Ability to send parallel requests (think curl_multi), and validate
the requests are made in parallel.
* Ability to delay one response for a specific amount of time, but
have another response return earlier.

Thanks,
Daniel.

[1] https://github.com/InterNations/http-mock
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Disaster Mitigation Program - Apr. 27, 2014
Next Topic: Storing strings and numbers properly in CSV files
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 13:50:48 GMT 2024

Total time taken to generate the page: 0.04269 seconds