On 30 Apr, 13:57, Matthew Peters <matthew.f.pet... googlemail.com>
wrote:
> I fixed the problem with the SMD generation test: it
was testing the
> output against a sample file that had a fixed service
location within
> it; with a c:..Simon... in fact
>
> On Apr 27, 4:51 pm, simonsl... googlemail.com wrote:
>
> > On 27 Apr, 16:39, Matthew Peters
<matthew.f.pet... googlemail.com>
> > wrote:
>
> > > I did get some misbehaviour when I run these
tests, but I have fixed
> > > them both.
>
> > > (1)
> > > One stems from the lines like this on in
RestRpcTest.php::setUp() as
> > > follows:
>
> > > $this->response =
file_get_contents("SCA/phpunit/RestRpc/
> > > RestRpcTestService.response");
>
> > > I have fixed them to be like this:
>
> > > $this->response =
file_get_contents(dirname(__FILE__) . "/
> > > RestRpcTestService.response");
>
> > > which makes the tests independent of where
they are run from.
>
> > > (2)
> > > I have also changed uses of header() to
SCA::sendHttpHeader(), which I
> > > originally put in so that we could add unit
tests for anything coming
> > > out of header(); also it means you don't get
the "Cannot modify header
> > > information" messages which I otherwise
get all the time.
>
> > > I have checked these changes in.
>
> > > There is now only one failure which is the
SMD generation test. Shall
> > > I mark this as to be skipped? Or raise a
defect?
>
> > > Matthew
>
> > > On Apr 27, 2:31 pm, simonsl... googlemail.com wrote:
>
> > > > I've checked some tests in for JsonRpc
and RestRpc Although they run I
> > > > am getting some warnings. I've taken the
approach with the tests of
> > > > trying to push tests messages through as
much of the infrastructure as
> > > > possible and parts of it are complaining
about being run in a test
> > > > environment. Anyhow I prefer to have the
tests with warnings rather
> > > > than no tests at all.
>
> > > > I've also added some more SCA examples
base on some of the examples
> > > > that have been used at recent
conferences.
>
> > > > Simon
>
> > Thanks for doing that Matthew. I didn't get a
failure with SMD
> > generation so let me try it again wit your
changes.
>
> > Simon
Thanks for doing that Matthew. I just checked out the code
and got a
clean build/test. I've added XmlRpc back into the test
suite. It runs
OK on my machine now.
Simon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "phpsoa" group.
To post to this group, send email to phpsoa googlegroups.com
To unsubscribe from this group, send email to
phpsoa-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.co.uk/group/phpsoa?hl=en
-~----------~----~----~----~------~----~------~--~---
|