|
From: Marcus B. <ma...@wo...> - 2009-03-21 23:22:18
|
Hi...
Eduardo Garcia wrote:
> Because checking the test web module doesn't exist assets functions for
> this kind of answer.
Underneath the SimpleBrowser class is something called SimpleUserAgent.
This has the get/post and header methods you need for XML-RPC, etc.
If you add an assert like this...
function assertJson($url, $expected) {
$agent = new SimpleUserAgent();
$this->assertIdentical($agent->get($url), $expected);
}
...I think this is close to what you want. If not, then let me know the
difference and we can go from there.
>
> Best regards
yours, Marcus
|