Re: [PEPr] +1 for Web Services::Services_UseKetchup

From: Date: Thu, 16 Sep 2010 00:44:24 +0000
Subject: Re: [PEPr] +1 for Web Services::Services_UseKetchup
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-53819@lists.php.net to get a copy of this message
On Thu, Sep 16, 2010 at 2:51 AM, till <till@php.net> wrote: > On Thu, Sep 9, 2010 at 7:55 PM, till <till@php.net> wrote: > > On Thu, Sep 9, 2010 at 1:36 AM, Daniel O'Connor > > <daniel.oconnor@gmail.com> wrote: > > (...) > > >> PHPUnit's getMock() or HTTP_Request2's Mock Adapter ftw. > > > > Ah, yeah. Good idea. Creating those is a bit tedious, I'll make sure > > to put that in before 1.0.0. > > I started working on something - the working title is Testing_GenerateMock: > > > http://github.com/till/Services_UseKetchup/blob/master/Testing/GenerateMock.php > > So basically what it does is, it generates files from > METHOD-URL-QUERY. Has a public static to generate the filename from > these components. > > What do you think? > > Till > Mocking hurray! I also sometimes find this is useful if I've got a bunch of raw http responses, and I want to mush it together with a dataprovider. http://pear.php.net/package/HTTP_Request2/docs/latest/HTTP_Request2/HTTP_Request2_Adapter_Mock.html#methodcreateResponseFromFile

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