I did get some misbehaviour when I run these tests, but I have fixed
them both.

One stems from the lines like this on in RestRpcTest.php::setUp() as

        $this->response = file_get_contents("SCA/phpunit/RestRpc/

I have fixed them to be like this:

        $this->response = file_get_contents(dirname(__FILE__) . "/

which makes the tests independent of where they are run from.

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?


On Apr 27, 2:31 pm, [EMAIL PROTECTED] 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

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 [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to